|
|
|
@@ -114,6 +114,7 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
//sendmsg(wxMsg, wxMsgConfig, null); |
|
|
|
wxMsg.setWxMsgConfig(wxMsgConfig); |
|
|
|
wxMsg.setCouponInject(null); |
|
|
|
wxMsg.setMsgType(EnumMsgRecordType.SMS_CALLBACK.getCode()); |
|
|
|
mqBaseProducer.sendMessage(wxMsg, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),null); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "短信已发送"); |
|
|
|
@@ -142,6 +143,7 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
} else { |
|
|
|
//sendmsg(wxMsg, wxMsgConfig, null); |
|
|
|
wxMsg.setWxMsgConfig(wxMsgConfig); |
|
|
|
wxMsg.setMsgType(EnumMsgRecordType.SMS_CALLBACK.getCode()); |
|
|
|
mqBaseProducer.sendMessage(wxMsg, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "短信已发送"); |
|
|
|
@@ -155,7 +157,6 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteById(Long id) { |
|
|
|
wxMsgMapper.deleteByPrimaryKey(id); |
|
|
|
@@ -184,6 +185,7 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
//sendmsg(wxMsg, wxMsgConfig, couponInject); |
|
|
|
wxMsg.setWxMsgConfig(wxMsgConfig); |
|
|
|
wxMsg.setCouponInject(couponInject); |
|
|
|
wxMsg.setMsgType(EnumMsgRecordType.SMS_CALLBACK.getCode()); |
|
|
|
mqBaseProducer.sendMessage(wxMsg, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
} else { |
|
|
|
List<String> phoneList = Arrays.asList(split).subList(i * 1000, (i + 1) * 1000); |
|
|
|
@@ -193,6 +195,7 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
//sendmsg(wxMsg, wxMsgConfig, couponInject); |
|
|
|
wxMsg.setWxMsgConfig(wxMsgConfig); |
|
|
|
wxMsg.setCouponInject(couponInject); |
|
|
|
wxMsg.setMsgType(EnumMsgRecordType.SMS_CALLBACK.getCode()); |
|
|
|
mqBaseProducer.sendMessage(wxMsg, EnumMsgMqTopic.DEFAULT.getCode(),EnumMsgMqTag.DEFAULT.getCode(),EnumMsgMqKey.DEFAULT.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
|