Browse Source

//add msg length

release_toaliyun_real
xhxu 4 years ago
parent
commit
b080f1b1d0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java View File

@@ -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,"运营商返回失败:");


Loading…
Cancel
Save