winter 4 месяцев назад
Родитель
Сommit
0ac6d1511a
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/sms/aliyun/AliyunSMS.java

+ 1
- 0
mallinkService/src/main/java/com/iformall/sms/aliyun/AliyunSMS.java Просмотреть файл

@@ -106,6 +106,7 @@ public class AliyunSMS implements SMSExcutor {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
try { try {
com.aliyun.dysmsapi20170525.models.CreateSmsTemplateResponse resp = client.createSmsTemplateWithOptions(createSmsTemplateRequest, runtime); com.aliyun.dysmsapi20170525.models.CreateSmsTemplateResponse resp = client.createSmsTemplateWithOptions(createSmsTemplateRequest, runtime);
log.info(">>>"+JSON.toJSONString(resp));
JSONObject respo = JSON.parseObject(JSON.toJSONString(resp)); JSONObject respo = JSON.parseObject(JSON.toJSONString(resp));
String code = respo.getString("Code"); String code = respo.getString("Code");
if (StringUtils.isNotBlank(code) && code.equalsIgnoreCase("ok")) { if (StringUtils.isNotBlank(code) && code.equalsIgnoreCase("ok")) {


Загрузка…
Отмена
Сохранить