Explorar o código

更新短信配置

woody hai 1 ano
pai
achega
d523a04481

+ 1 - 1
framework-sms/src/main/java/com/chelvc/framework/sms/config/AliyunSmsProperties.java

@@ -19,7 +19,7 @@ public class AliyunSmsProperties {
     /**
      * AccessKey ID
      */
-    private String id;
+    private String key;
 
     /**
      * AccessKey Secret

+ 2 - 2
framework-sms/src/main/java/com/chelvc/framework/sms/config/SmsConfigurer.java

@@ -28,7 +28,7 @@ public class SmsConfigurer {
     @Bean
     @ConditionalOnBean(AliyunSmsProperties.class)
     public Config aliyunSmsConfig(AliyunSmsProperties properties) {
-        return new Config().setAccessKeyId(properties.getId())
+        return new Config().setAccessKeyId(properties.getKey())
                 .setAccessKeySecret(properties.getSecret()).setEndpoint("dysmsapi.aliyuncs.com");
     }
 
@@ -59,6 +59,6 @@ public class SmsConfigurer {
     @Bean
     @ConditionalOnBean(TencentSmsProperties.class)
     public SmsSingleSender tencentSmsSender(TencentSmsProperties properties) {
-        return new SmsSingleSender(properties.getId(), properties.getSecret(), new PoolingHTTPClient());
+        return new SmsSingleSender(properties.getAppid(), properties.getSecret(), new PoolingHTTPClient());
     }
 }

+ 1 - 1
framework-sms/src/main/java/com/chelvc/framework/sms/config/TencentSmsProperties.java

@@ -19,7 +19,7 @@ public class TencentSmsProperties {
     /**
      * 应用标识
      */
-    private Integer id;
+    private Integer appid;
 
     /**
      * 应用密钥