简单调整下腾讯云短信的排版

pull/2/head
YunaiV 2022-04-09 11:28:21 +08:00
parent 65a86e8d75
commit 9bed141201
2 changed files with 4 additions and 5 deletions

View File

@ -41,15 +41,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DE
*/ */
public class TencentSmsClient extends AbstractSmsClient { public class TencentSmsClient extends AbstractSmsClient {
private SmsClient client;
/** /**
* code * code
*/ */
public static final String API_SUCCESS_CODE = "Ok"; public static final String API_SUCCESS_CODE = "Ok";
/** /**
* REGION, 使 * REGION使
*/ */
private static final String ENDPOINT = "ap-nanjing"; private static final String ENDPOINT = "ap-nanjing";
@ -60,6 +58,8 @@ public class TencentSmsClient extends AbstractSmsClient {
*/ */
private static final long INTERNATIONAL = 0L; private static final long INTERNATIONAL = 0L;
private SmsClient client;
public TencentSmsClient(SmsChannelProperties properties) { public TencentSmsClient(SmsChannelProperties properties) {
super(properties, new TencentSmsCodeMapping()); super(properties, new TencentSmsCodeMapping());
Assert.notEmpty(properties.getApiSecret(), "apiSecret 不能为空"); Assert.notEmpty(properties.getApiSecret(), "apiSecret 不能为空");

View File

@ -11,7 +11,6 @@ import lombok.Data;
* @author shiwp * @author shiwp
*/ */
@Data @Data
public class TencentSmsChannelProperties extends SmsChannelProperties { public class TencentSmsChannelProperties extends SmsChannelProperties {
/** /**
@ -38,4 +37,4 @@ public class TencentSmsChannelProperties extends SmsChannelProperties {
result.setSdkAppId(keys[1]).setApiKey(keys[0]); result.setSdkAppId(keys[1]).setApiKey(keys[0]);
return result; return result;
} }
} }