Authored by tanling

sdk

... ... @@ -16,7 +16,7 @@
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-message-sdk</artifactId>
<name>yoho-message-sdk</name>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
... ...
... ... @@ -17,7 +17,7 @@ public interface IOfflineShopMessage {
*
* @return
*/
SendMessageRspBo reserveRemindForAllFans(String activityName, int startTime, int endTime, boolean isAB, String miniPatharam);
SendMessageRspBo reserveRemindForAllFans(String activityName, int startTime, int endTime, boolean isAB, String miniPathParam);
/**
... ... @@ -34,14 +34,14 @@ public interface IOfflineShopMessage {
/**
* 排队成功通知
* @param uids
* @param uid
* @param activityName 活动名称
* @param queueTimeStr 排队时间
* @param registerMobile 注册号码
* @param activityId 用于小程序跳转
* @return
*/
SendMessageRspBo queueSuccess(List<String> uids, String activityName, String queueTimeStr, String registerMobile, String activityId);
SendMessageRspBo queueSuccess(String uid, String activityName, String queueTimeStr, String registerMobile, String activityId);
/**
... ... @@ -53,7 +53,7 @@ public interface IOfflineShopMessage {
* @param expireTime 过期时间
* @return
*/
SendMessageRspBo serviceDue(String uid, String brandName, int expireCouponNum, String couponName, int expireTime);
SendMessageRspBo serviceDue(String uid, String brandName, int expireCouponNum, String couponName, String expireTime);
... ...
... ... @@ -75,17 +75,17 @@ public class OfflineShopMessageImpl extends AbstractSendMessage implements IOffl
/**
* 排队成功通知
* @param uids
* @param uid
* @param activityName
* @param queueTimeStr
* @param registerMobile
* @param activityId
* @return
*/
public SendMessageRspBo queueSuccess(List<String> uids, String activityName, String queueTimeStr, String registerMobile, String activityId) {
public SendMessageRspBo queueSuccess(String uid, String activityName, String queueTimeStr, String registerMobile, String activityId) {
// 指定线下店小程序
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(OfflineShopScenes.LIMIT_QUEUE_SUCCESS,
String.valueOf(System.currentTimeMillis()), PublicNumberConstants.OFF_SHOP_MINIPROGRAM, uids);
String.valueOf(System.currentTimeMillis()), PublicNumberConstants.OFF_SHOP_MINIPROGRAM, uid);
messageCenterCommonEvent.putInParams("activityName", activityName);
messageCenterCommonEvent.putInParams("queueTimeStr", queueTimeStr);
... ... @@ -106,7 +106,7 @@ public class OfflineShopMessageImpl extends AbstractSendMessage implements IOffl
* @return
*/
@Override
public SendMessageRspBo serviceDue(String uids, String brandName, int expireCouponNum, String couponName, int expireTime) {
public SendMessageRspBo serviceDue(String uids, String brandName, int expireCouponNum, String couponName, String expireTime) {
// 指定线下店公众号
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEventPublicCode(OfflineShopScenes.COUPON_SERVICE_DUE,
String.valueOf(System.currentTimeMillis()), PublicNumberConstants.OFF_SHOP_SERVICE, uids);
... ... @@ -114,7 +114,7 @@ public class OfflineShopMessageImpl extends AbstractSendMessage implements IOffl
messageCenterCommonEvent.putInParams("expireCouponNum", expireCouponNum);
messageCenterCommonEvent.putInParams("brandName", brandName);
messageCenterCommonEvent.putInParams("couponName", couponName);
messageCenterCommonEvent.putInParams("expireTime", DateUtils.long2DateStr(expireTime * 1000l, DateUtils.dateFormat));
messageCenterCommonEvent.putInParams("expireTime", expireTime);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
... ...
... ... @@ -25,7 +25,7 @@ public class TestUserMessage {
*/
@Test
public void reserveRemineForAllFans() {
// offlineShopMessage.reserveRemindForAllFans("线下店王大锤测试活动", 1517905629, 1517905629, "有货", "pages/index/index");
offlineShopMessage.reserveRemindForAllFans("线下店王大锤测试活动", 1517905629, 1517905629, true, "123");
}
... ...