|
|
|
@@ -757,24 +757,24 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
@Override |
|
|
|
public void actionAfterCouponOrder(WxCouponOrder couponOrder, WxOrder rOrder, WxCoupon coupon, WxCUserBasicInfo user) { |
|
|
|
// 发送短信 |
|
|
|
// if(EnumPayWay.PAY_WAY_TT.getCode().equals(couponOrder.getPayVendor())){ |
|
|
|
logger.info("订单成功短信通知start"); |
|
|
|
//券名 |
|
|
|
String name = coupon.getTitle(); |
|
|
|
//找出用户手机号 |
|
|
|
String phone = user.getPhone(); |
|
|
|
Map<String, String> msgReplaceMap = new HashMap(); |
|
|
|
msgReplaceMap.put("name", name); |
|
|
|
|
|
|
|
WxMsgRecord wxMsgRecord = new WxMsgRecord(); |
|
|
|
wxMsgRecord.updateTenantInfo(couponOrder); |
|
|
|
wxMsgRecord.setMsgType(EnumMsgRecordType.SMS.getCode()); |
|
|
|
wxMsgRecord.setModelType(EnumMsgModel.COUPON_ORDER_REFUND.getCode()); |
|
|
|
wxMsgRecord.setReceiver(phone); |
|
|
|
wxMsgRecord.setDynamicContentMap(msgReplaceMap); |
|
|
|
mqBaseProducer.sendMessage(wxMsgRecord, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
logger.info("订单成功短信通知end"); |
|
|
|
// } |
|
|
|
if(EnumPayWay.PAY_WAY_TT.getCode().equals(couponOrder.getPayVendor())){ |
|
|
|
logger.info("订单成功短信通知start"); |
|
|
|
//券名 |
|
|
|
String name = coupon.getTitle(); |
|
|
|
//找出用户手机号 |
|
|
|
String phone = user.getPhone(); |
|
|
|
Map<String, String> msgReplaceMap = new HashMap(); |
|
|
|
msgReplaceMap.put("name", name); |
|
|
|
|
|
|
|
WxMsgRecord wxMsgRecord = new WxMsgRecord(); |
|
|
|
wxMsgRecord.updateTenantInfo(couponOrder); |
|
|
|
wxMsgRecord.setMsgType(EnumMsgRecordType.SMS.getCode()); |
|
|
|
wxMsgRecord.setModelType(EnumMsgModel.COUPON_ORDER_REFUND.getCode()); |
|
|
|
wxMsgRecord.setReceiver(phone); |
|
|
|
wxMsgRecord.setDynamicContentMap(msgReplaceMap); |
|
|
|
mqBaseProducer.sendMessage(wxMsgRecord, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
logger.info("订单成功短信通知end"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|