Przeglądaj źródła

//add msg length

release_toaliyun_real
xhxu 4 lat temu
rodzic
commit
b080f1b1d0
1 zmienionych plików z 2 dodań i 1 usunięć
  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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz