|
|
|
@@ -94,6 +94,7 @@ public class SendSmsServiceImpl implements MsgSendService { |
|
|
|
String bid = wxMsgConfig.getBid(); |
|
|
|
String publickey = wxMsgConfig.getPublickey(); |
|
|
|
String phone = record.getReceiver(); |
|
|
|
int phoneLength = phone.split(",").length; |
|
|
|
String signature = wxMsgValidationcodeModel.getSignature(); |
|
|
|
|
|
|
|
String notifyUrl = wxMsgConfig.getNotifyurl(); |
|
|
|
@@ -120,7 +121,7 @@ public class SendSmsServiceImpl implements MsgSendService { |
|
|
|
wxMsgValidationcodeMapper.insert(wxMsgValidationcode); |
|
|
|
wxMsgValidationcodeService.addMsgCallback(wxMsgValidationcode, batchNo, id); |
|
|
|
//扣减剩余条数 |
|
|
|
wxMsgConfig.setRemains(1L); |
|
|
|
wxMsgConfig.setRemains((long) phoneLength); |
|
|
|
wxMsgConfigMapper.updateRemains(wxMsgConfig); |
|
|
|
}else{ |
|
|
|
throw new MallinkException(1001,"运营商返回失败:"); |
|
|
|
|