This commit is contained in:
77
2024-05-17 22:52:17 +08:00
parent cf76081118
commit 5dc1ca2521
3 changed files with 8 additions and 6 deletions

View File

@@ -90,11 +90,11 @@ public class AliSmsKit {
String data = response.getData();
JSONObject jsonObject = JSONObject.parseObject(data);
if(jsonObject.get("Code") == null || !"OK".equals(jsonObject.get("Code"))){
log.error("短信发送失败 response={}", jsonObject.toJSONString());
log.error("短信发送失败!phone={}, template={}, response={}", phone, messageTemplate, jsonObject.toJSONString());
return false;
}
} catch (ClientException e) {
log.error(e.getMessage(),e);
log.error("短信发送失败!phone={},template={},e={}",phone,messageTemplate,e.getMessage(),e);
throw new RuntimeException("短信发送失败!");
}
return true;