From 9bed14120193211fe134b3567e4110fa7207822e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 9 Apr 2022 11:28:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E8=B0=83=E6=95=B4=E4=B8=8B?= =?UTF-8?q?=E8=85=BE=E8=AE=AF=E4=BA=91=E7=9F=AD=E4=BF=A1=E7=9A=84=E6=8E=92?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sms/core/client/impl/tencent/TencentSmsClient.java | 6 +++--- .../sms/core/property/TencentSmsChannelProperties.java | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/tencent/TencentSmsClient.java b/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/tencent/TencentSmsClient.java index 6132beab6..39be92397 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/tencent/TencentSmsClient.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/tencent/TencentSmsClient.java @@ -41,15 +41,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE */ public class TencentSmsClient extends AbstractSmsClient { - private SmsClient client; - /** * 调用成功 code */ public static final String API_SUCCESS_CODE = "Ok"; /** - * REGION, 使用南京 + * REGION,使用南京 */ private static final String ENDPOINT = "ap-nanjing"; @@ -60,6 +58,8 @@ public class TencentSmsClient extends AbstractSmsClient { */ private static final long INTERNATIONAL = 0L; + private SmsClient client; + public TencentSmsClient(SmsChannelProperties properties) { super(properties, new TencentSmsCodeMapping()); Assert.notEmpty(properties.getApiSecret(), "apiSecret 不能为空"); diff --git a/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/property/TencentSmsChannelProperties.java b/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/property/TencentSmsChannelProperties.java index 1fc4b947e..18f98612d 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/property/TencentSmsChannelProperties.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-sms/src/main/java/cn/iocoder/yudao/framework/sms/core/property/TencentSmsChannelProperties.java @@ -11,7 +11,6 @@ import lombok.Data; * @author shiwp */ @Data - public class TencentSmsChannelProperties extends SmsChannelProperties { /** @@ -38,4 +37,4 @@ public class TencentSmsChannelProperties extends SmsChannelProperties { result.setSdkAppId(keys[1]).setApiKey(keys[0]); return result; } -} \ No newline at end of file +}