Ver código fonte

[短信发送][修改][回调地址]

release_toaliyun_real
gongbiao 6 anos atrás
pai
commit
75ce0b2142
2 arquivos alterados com 6 adições e 5 exclusões
  1. +4
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java
  2. +2
    -2
      mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java

+ 4
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java Ver arquivo

@@ -21,7 +21,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;
import java.util.stream.Collectors;

@Service
public class WxCouponInjectServiceImpl implements WxCouponInjectService {
@@ -119,10 +118,12 @@ public class WxCouponInjectServiceImpl implements WxCouponInjectService {
//2、通过标签
String phones = record.getPhones();
List<WxCUserBasicInfoFilterListDto> filter = record.getFilterList();
if (!phones.isEmpty() && !filter.isEmpty()) {//两种方式只能选其一
if (!phones.isEmpty() && !filter.isEmpty()) {
//两种方式只能选其一
return new ResultData(ErrorCode.MSG_SEND_WAY_CHOOSE_ERROR);
}
if (phones.isEmpty() && filter.isEmpty()) {//两种方式必须选其一
if (phones.isEmpty() && filter.isEmpty()) {
//两种方式必须选其一
return new ResultData(ErrorCode.MSG_SEND_WAY_CHOOSE_ERROR);
}



+ 2
- 2
mallinkService/src/main/java/com/iformall/service/msg/impl/SendSmsServiceImpl.java Ver arquivo

@@ -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);


Carregando…
Cancelar
Salvar