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