xiongzhu 2 years ago
parent
commit
6e141d25ba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/izouma/nineth/service/sms/AliSmsService.java

+ 2 - 2
src/main/java/com/izouma/nineth/service/sms/AliSmsService.java

@@ -86,7 +86,7 @@ public class AliSmsService implements SmsService {
             if (response.getHttpStatus() != 200) {
                 throw new BusinessException("发送失败,请稍后再试", response.getHttpStatus() + "," + response.getData());
             }
-            log.info("send sms response {}", response.getData());
+            log.info("{} send sms response {}", phone, response.getData());
             JSONObject jsonObject = JSON.parseObject(response.getData());
             if (!"ok".equalsIgnoreCase(jsonObject.getString("Code"))) {
                 throw new BusinessException("发送失败,请稍后再试", jsonObject.getString("Message"));
@@ -152,7 +152,7 @@ public class AliSmsService implements SmsService {
             if (response.getHttpStatus() != 200) {
                 log.error("发送失败," + response.getHttpStatus() + "," + response.getData());
             }
-            log.info("send sms response {}", response.getData());
+            log.info("{} send sms response {}", phone, response.getData());
             JSONObject jsonObject = JSON.parseObject(response.getData());
             if (!"ok".equalsIgnoreCase(jsonObject.getString("Code"))) {
                 log.error("发送失败," + jsonObject.getString("Message"));