Skip to content

Commit

Permalink
- 短信 key 值添加 default_value
Browse files Browse the repository at this point in the history
  • Loading branch information
cherishsince committed May 27, 2019
1 parent e1292e3 commit 3ab6d4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
@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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ab6d4d

Please sign in to comment.