|
|
|
@@ -1,11 +1,9 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import cn.binarywang.wx.miniapp.bean.WxMaTemplateData; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.IdWorker; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.domain.po.msg.AppUniformMsg; |
|
|
|
@@ -18,7 +16,6 @@ import com.iformall.mapper.*; |
|
|
|
import com.iformall.mq.MqBaseProducer; |
|
|
|
import com.iformall.service.*; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
import me.chanjar.weixin.mp.bean.template.WxMpTemplateData; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
@@ -274,7 +271,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
// 检查是否超限 |
|
|
|
WxMsgLimit msgLimit = new WxMsgLimit(); |
|
|
|
msgLimit.setTenantId(user.getTenantId()); |
|
|
|
msgLimit.setType(EnumMsgLimitType.WXCHAT_OPENID.getCode()); |
|
|
|
msgLimit.setType(EnumMsgLimitType.WXCHAT_OPENID_SEND.getCode()); |
|
|
|
msgLimit.setLimitId(user.getMpOpenId()); |
|
|
|
if(wxMsgLimitService.checkIsLimit(msgLimit)) { |
|
|
|
logger.error("用户公众号模板消息超限" + user.getId()); |
|
|
|
@@ -323,7 +320,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
// 检查是否超限 |
|
|
|
WxMsgLimit msgLimit = new WxMsgLimit(); |
|
|
|
msgLimit.setTenantId(user.getTenantId()); |
|
|
|
msgLimit.setType(EnumMsgLimitType.WEAPP_OPENID.getCode()); |
|
|
|
msgLimit.setType(EnumMsgLimitType.WEAPP_OPENID_SEND.getCode()); |
|
|
|
msgLimit.setLimitId(user.getOpenId()); |
|
|
|
if(wxMsgLimitService.checkIsLimit(msgLimit)) { |
|
|
|
logger.error("用户小程序统一模板消息超限:" + user.getId()); |
|
|
|
|