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