|
|
|
@@ -87,7 +87,7 @@ public class SendSmsServiceImpl implements MsgSendService { |
|
|
|
wxMsgValidationcode.setCode(record.getDynamicContentMap().get("s6")); |
|
|
|
} |
|
|
|
|
|
|
|
String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
String notifyUrl = wxMsgConfig.getVerifynotifyurl(); |
|
|
|
Integer modelId = wxMsgValidationcodeModel.getModelId(); |
|
|
|
String result = WiwideUtil.sendMsg(secret, bid, publickey, phone, signature, msg, notifyUrl, EnumVerifyCode.YES.getCode().toString(), modelId); |
|
|
|
JSONObject jsonObjectResult = JSONObject.parseObject(result); |
|
|
|
@@ -108,7 +108,7 @@ public class SendSmsServiceImpl implements MsgSendService { |
|
|
|
wxMsgValidationcodeMapper.insertSelective(wxMsgValidationcode); |
|
|
|
wxMsgValidationcodeService.addMsgCallback(wxMsgValidationcode,batchNo); |
|
|
|
//扣减剩余条数 |
|
|
|
wxMsgConfig.setRemains(1l); |
|
|
|
wxMsgConfig.setRemains(1L); |
|
|
|
wxMsgConfigMapper.updateRemains(wxMsgConfig); |
|
|
|
}else{ |
|
|
|
throw new MallinkException(1001,"运营商返回失败:"+result); |
|
|
|
|