Commit 9bed14120193211fe134b3567e4110fa7207822e
1 parent
65a86e8d
简单调整下腾讯云短信的排版
Showing
2 changed files
with
4 additions
and
5 deletions
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 | @@ -41,15 +41,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE | ||
| 41 | */ | 41 | */ |
| 42 | public class TencentSmsClient extends AbstractSmsClient { | 42 | public class TencentSmsClient extends AbstractSmsClient { |
| 43 | 43 | ||
| 44 | - private SmsClient client; | ||
| 45 | - | ||
| 46 | /** | 44 | /** |
| 47 | * 调用成功 code | 45 | * 调用成功 code |
| 48 | */ | 46 | */ |
| 49 | public static final String API_SUCCESS_CODE = "Ok"; | 47 | public static final String API_SUCCESS_CODE = "Ok"; |
| 50 | 48 | ||
| 51 | /** | 49 | /** |
| 52 | - * REGION, 使用南京 | 50 | + * REGION,使用南京 |
| 53 | */ | 51 | */ |
| 54 | private static final String ENDPOINT = "ap-nanjing"; | 52 | private static final String ENDPOINT = "ap-nanjing"; |
| 55 | 53 | ||
| @@ -60,6 +58,8 @@ public class TencentSmsClient extends AbstractSmsClient { | @@ -60,6 +58,8 @@ public class TencentSmsClient extends AbstractSmsClient { | ||
| 60 | */ | 58 | */ |
| 61 | private static final long INTERNATIONAL = 0L; | 59 | private static final long INTERNATIONAL = 0L; |
| 62 | 60 | ||
| 61 | + private SmsClient client; | ||
| 62 | + | ||
| 63 | public TencentSmsClient(SmsChannelProperties properties) { | 63 | public TencentSmsClient(SmsChannelProperties properties) { |
| 64 | super(properties, new TencentSmsCodeMapping()); | 64 | super(properties, new TencentSmsCodeMapping()); |
| 65 | Assert.notEmpty(properties.getApiSecret(), "apiSecret 不能为空"); | 65 | Assert.notEmpty(properties.getApiSecret(), "apiSecret 不能为空"); |
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; | @@ -11,7 +11,6 @@ import lombok.Data; | ||
| 11 | * @author shiwp | 11 | * @author shiwp |
| 12 | */ | 12 | */ |
| 13 | @Data | 13 | @Data |
| 14 | - | ||
| 15 | public class TencentSmsChannelProperties extends SmsChannelProperties { | 14 | public class TencentSmsChannelProperties extends SmsChannelProperties { |
| 16 | 15 | ||
| 17 | /** | 16 | /** |
| @@ -38,4 +37,4 @@ public class TencentSmsChannelProperties extends SmsChannelProperties { | @@ -38,4 +37,4 @@ public class TencentSmsChannelProperties extends SmsChannelProperties { | ||
| 38 | result.setSdkAppId(keys[1]).setApiKey(keys[0]); | 37 | result.setSdkAppId(keys[1]).setApiKey(keys[0]); |
| 39 | return result; | 38 | return result; |
| 40 | } | 39 | } |
| 41 | -} | ||
| 42 | \ No newline at end of file | 40 | \ No newline at end of file |
| 41 | +} |