|
|
|
@@ -75,16 +75,10 @@ public class SendCallBackSmsServiceImpl implements MsgSendService { |
|
|
|
throw new MallinkException(ErrorCode.MSG_CONFIG_ACCOUNT); |
|
|
|
} |
|
|
|
} |
|
|
|
WxCouponInject couponInject = record.getCouponInject(); |
|
|
|
|
|
|
|
String secret = wxMsgConfig.getSecret(); |
|
|
|
String bid = wxMsgConfig.getBid(); |
|
|
|
String publickey = wxMsgConfig.getPublickey(); |
|
|
|
|
|
|
|
String phone = record.getPhones(); |
|
|
|
String signature = record.getSignature(); |
|
|
|
String msg = record.getMsg(); |
|
|
|
String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
WxMsgModel wxMsgModel = wxMsgModelMapper.selectById(record.getModelId()); |
|
|
|
Integer modelId = null; |
|
|
|
if (wxMsgModel != null) { |
|
|
|
@@ -143,9 +137,11 @@ public class SendCallBackSmsServiceImpl implements MsgSendService { |
|
|
|
wxMsgService.addMsgCallback(record, batchNo); |
|
|
|
//wx_msg改为已发送 |
|
|
|
record.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); |
|
|
|
record.setExpectSendNumber(null); |
|
|
|
wxMsgMapper.updateById(record); |
|
|
|
} else { |
|
|
|
logger.error("发送:{},运营商返回失败:{}",phone,result); |
|
|
|
record.setExpectSendNumber(null); |
|
|
|
wxMsgMapper.updateById(record); |
|
|
|
throw new MallinkException(1001,"运营商返回失败:"+result); |
|
|
|
} |
|
|
|
|