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 +}