From aeacfea53606a4aee0ce9b710f68a1123ee92ffb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期二, 20 十二月 2022 10:33:10 +0800 Subject: [PATCH] !266 add 增加 RedisUtils 检查缓存对象是否存在方法 Merge pull request !266 from KonBAI/dev --- ruoyi-sms/src/main/java/com/ruoyi/sms/core/AliyunSmsTemplate.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-sms/src/main/java/com/ruoyi/sms/core/AliyunSmsTemplate.java b/ruoyi-sms/src/main/java/com/ruoyi/sms/core/AliyunSmsTemplate.java index 87c3f3b..3c16a5b 100644 --- a/ruoyi-sms/src/main/java/com/ruoyi/sms/core/AliyunSmsTemplate.java +++ b/ruoyi-sms/src/main/java/com/ruoyi/sms/core/AliyunSmsTemplate.java @@ -38,6 +38,7 @@ this.client = new Client(config); } + @Override public SmsResult send(String phones, String templateId, Map<String, String> param) { if (StringUtils.isBlank(phones)) { throw new SmsException("鎵嬫満鍙蜂笉鑳戒负绌�"); @@ -55,7 +56,7 @@ return SmsResult.builder() .isSuccess("OK".equals(resp.getBody().getCode())) .message(resp.getBody().getMessage()) - .response(resp) + .response(JsonUtils.toJsonString(resp)) .build(); } catch (Exception e) { throw new SmsException(e.getMessage()); -- Gitblit v1.9.3