- 短信 key 值添加 default_value
This commit is contained in:
parent
e1292e3867
commit
3ab6d4dc61
@ -25,9 +25,9 @@ import java.util.Map;
|
|||||||
@Component
|
@Component
|
||||||
public class SmsAliYunClient implements SmsClient {
|
public class SmsAliYunClient implements SmsClient {
|
||||||
|
|
||||||
@Value("${sms.aliYun.accessKeyId}")
|
@Value("${sms.aliYun.accessKeyId?:'default_value'}")
|
||||||
private String accessKeyId;
|
private String accessKeyId;
|
||||||
@Value("${sms.aliYun.accessSecret}")
|
@Value("${sms.aliYun.accessSecret?:'default_value'}")
|
||||||
private String accessSecret;
|
private String accessSecret;
|
||||||
|
|
||||||
private static final String DOMAIN = "dysmsapi.aliyuncs.com";
|
private static final String DOMAIN = "dysmsapi.aliyuncs.com";
|
||||||
|
@ -91,7 +91,7 @@ public class SmsYunPianClient implements SmsClient {
|
|||||||
//编码格式。发送编码格式统一用UTF-8
|
//编码格式。发送编码格式统一用UTF-8
|
||||||
private static String ENCODING = "UTF-8";
|
private static String ENCODING = "UTF-8";
|
||||||
|
|
||||||
@Value("${sms.yunPian.apiKey}")
|
@Value("${sms.yunPian.apiKey?:'default_value'}")
|
||||||
private String apiKey;
|
private String apiKey;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -27,10 +27,10 @@ mybatis-plus:
|
|||||||
# sms
|
# sms
|
||||||
sms:
|
sms:
|
||||||
yunPian:
|
yunPian:
|
||||||
apiKey: ${YUN_PIAN}
|
apiKey:
|
||||||
aliYun:
|
aliYun:
|
||||||
accessKeyId: ${ALI_YUN_KEY_ID}
|
accessKeyId:
|
||||||
accessSecret: ${ALI_YUN_SECRET}
|
accessSecret:
|
||||||
|
|
||||||
# dubbo
|
# dubbo
|
||||||
dubbo:
|
dubbo:
|
||||||
|
Loading…
Reference in New Issue
Block a user