Authored by Amos_sdy

新定义场景

... ... @@ -14,6 +14,13 @@ public class SendScenes {
// 订单发货
public static final String ORDER_SEND_OUT = "ORDER_SEND_OUT";
// 订单发货,订购人注册手机号与收货人不一致,仅通过手机号发短信
public static final String ORDER_SEND_OUT_ONLY_SMS = "ORDER_SEND_OUT_ONLY_SMS";
// 换货审核通过,订购人注册手机号与收货人不一致,仅通过手机号发短信
public static final String EXCHANGE_GOODS_ONLY_SMS = "EXCHANGE_GOODS_ONLY_SMS";
// 退货审核通过,订购人注册手机号与收货人不一致,仅通过手机号发短信
public static final String REFUND_GOODS_ONLY_SMS = "REFUND_GOODS_ONLY_SMS";
// 用户升级
public static final String MEMBERSHIP_UPGRADE = "MEMBERSHIP_UPGRADE";
... ...
... ... @@ -56,10 +56,10 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
MessageCenterCommonEvent messageCenterCommonEvent = new MessageCenterCommonEvent();
if (type == 1) {
// 退货
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.REFUND_GOODS_VERIFY_PASS, orderCode, "");
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.REFUND_GOODS_ONLY_SMS, orderCode, "");
} else if (type == 2) {
// 换货
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.EXCHANGE_GOODS_VERIFY_PASS, orderCode, "");
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.EXCHANGE_GOODS_ONLY_SMS, orderCode, "");
}
messageCenterCommonEvent.putInParams("mobile", mobile);
messageCenterCommonEvent.putInParams("orderCode", orderCode);
... ... @@ -133,7 +133,7 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
@Override
public SendMessageRspBo orderSendOutSms(String mobile, String uName, String orderCode, String companyName, String expressNum, String arriveDate) {
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT, orderCode, "");
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT_ONLY_SMS, orderCode, "");
messageCenterCommonEvent.putInParams("mobile", mobile);
messageCenterCommonEvent.putInParams("orderCode", orderCode);
messageCenterCommonEvent.putInParams("companyName", companyName);
... ...