| @@ -2008,22 +2008,22 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService { | |||||
| /** | /** | ||||
| * 检查 小程序模板消息是否超限 | * 检查 小程序模板消息是否超限 | ||||
| */ | */ | ||||
| WxMsgLimit msgLimit = new WxMsgLimit(); | |||||
| msgLimit.updateTenantInfo(merchant); | |||||
| msgLimit.setType(formType); | |||||
| msgLimit.setLimitId(formId); | |||||
| if (wxMsgLimitService.checkIsLimit(msgLimit)) { | |||||
| // 已达到限制条件,不发消息了 | |||||
| logger.error("已达到限制条件,不发小程序模板消息了: " + user.getId()); | |||||
| return; | |||||
| } | |||||
| if (bUsed) { | |||||
| //mq发送小程序消息 - 核销成功消息 | |||||
| doVerifySuccessMsg(couponOrder, formId, coupon, merchant, user, dateFormat, couponDetail, gotopage); | |||||
| } else { | |||||
| // mq发送小程序消息 - 核销失败消息 | |||||
| doVerifyFailMsg(couponOrder, formId, coupon, user, dateFormat, couponDetail, gotopage); | |||||
| } | |||||
| // WxMsgLimit msgLimit = new WxMsgLimit(); | |||||
| // msgLimit.updateTenantInfo(merchant); | |||||
| // msgLimit.setType(formType); | |||||
| // msgLimit.setLimitId(formId); | |||||
| // if (wxMsgLimitService.checkIsLimit(msgLimit)) { | |||||
| // // 已达到限制条件,不发消息了 | |||||
| // logger.error("已达到限制条件,不发小程序模板消息了: " + user.getId()); | |||||
| // return; | |||||
| // } | |||||
| // if (bUsed) { | |||||
| // //mq发送小程序消息 - 核销成功消息 | |||||
| // doVerifySuccessMsg(couponOrder, formId, coupon, merchant, user, dateFormat, couponDetail, gotopage); | |||||
| // } else { | |||||
| // // mq发送小程序消息 - 核销失败消息 | |||||
| // doVerifyFailMsg(couponOrder, formId, coupon, user, dateFormat, couponDetail, gotopage); | |||||
| // } | |||||
| } | } | ||||
| @@ -196,17 +196,17 @@ public class WxOrderPressServiceImpl implements WxOrderPressService { | |||||
| /** | /** | ||||
| * 检查 小程序模板消息是否超限 | * 检查 小程序模板消息是否超限 | ||||
| */ | */ | ||||
| WxMsgLimit msgLimit = new WxMsgLimit(); | |||||
| msgLimit.updateTenantInfo(user); | |||||
| msgLimit.setType(formType); | |||||
| msgLimit.setLimitId(formId); | |||||
| if(wxMsgLimitService.checkIsLimit(msgLimit)) { | |||||
| // 已达到限制条件,不发消息了 | |||||
| logger.error("已达到限制条件,不发小程序模板消息了: " + user.getId()); | |||||
| return; | |||||
| } | |||||
| // mq发送小程序消息 - 核销成功消息 | |||||
| doPressSuccessMsg(coupon, user, formId, gotopage); | |||||
| // WxMsgLimit msgLimit = new WxMsgLimit(); | |||||
| // msgLimit.updateTenantInfo(user); | |||||
| // msgLimit.setType(formType); | |||||
| // msgLimit.setLimitId(formId); | |||||
| // if(wxMsgLimitService.checkIsLimit(msgLimit)) { | |||||
| // // 已达到限制条件,不发消息了 | |||||
| // logger.error("已达到限制条件,不发小程序模板消息了: " + user.getId()); | |||||
| // return; | |||||
| // } | |||||
| // // mq发送小程序消息 - 核销成功消息 | |||||
| // doPressSuccessMsg(coupon, user, formId, gotopage); | |||||
| } | } | ||||
| private void doPressSuccessMsg(WxCoupon coupon, WxCUser user, String formId, String gotopage) { | private void doPressSuccessMsg(WxCoupon coupon, WxCUser user, String formId, String gotopage) { | ||||
| @@ -1595,7 +1595,7 @@ public class WxOrderServiceImpl implements WxOrderService { | |||||
| //发订阅消息 | //发订阅消息 | ||||
| sendCouponRemind(couponOrder,coupon, cuser); | sendCouponRemind(couponOrder,coupon, cuser); | ||||
| // 发送微信模板消息(公众号模板消息/小程序统一消息/小程序模板消息) | // 发送微信模板消息(公众号模板消息/小程序统一消息/小程序模板消息) | ||||
| sendMpMsgForSendCoupon(couponOrder,coupon, cuser); | |||||
| //sendMpMsgForSendCoupon(couponOrder,coupon, cuser); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||