Explorar el Código

// msg

release_toaliyun_real
xhxu hace 3 años
padre
commit
98648e22c1
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. +6
    -1
      mallinkService/src/main/java/com/iformall/sms/aliyun/AliyunSMS.java

+ 6
- 1
mallinkService/src/main/java/com/iformall/sms/aliyun/AliyunSMS.java Ver fichero

@@ -101,6 +101,7 @@ public class AliyunSMS implements SMSExcutor {
long sendStatus = smsSendDetailDTO.getSendStatus().longValue();
String outId = smsSendDetailDTO.getOutId();
String errCode = smsSendDetailDTO.getErrCode();
SendDetailsErrCode byCode = SendDetailsErrCode.getByCode(errCode);
Map<String, String> map = new HashMap<>();
map.put("smsChannel", EnumSMSChannel.ALIYUN.name());
if(sendStatus == 2l){//1:等待回执。2:发送失败。3:发送成功。
@@ -112,7 +113,11 @@ public class AliyunSMS implements SMSExcutor {
}
map.put("biz_id",bizId);
map.put("out_id",outId);
map.put("err_msg",errCode);
if(byCode != null){
map.put("err_msg",byCode.getMsg());
}else{
map.put("err_msg",errCode);
}
return JSON.toJSONString(map);
}
return null;


Cargando…
Cancelar
Guardar