Ver código fonte

代码优化

woody 4 meses atrás
pai
commit
4c3fc1c8aa

+ 1 - 1
framework-upload/src/main/java/com/chelvc/framework/upload/support/AliyunUploadHandler.java

@@ -42,7 +42,7 @@ public class AliyunUploadHandler implements UploadHandler {
         String secret = AssertUtils.nonempty(properties.getSecret(), () -> "Aliyun upload secret is missing");
         String region = AssertUtils.nonempty(properties.getRegion(), () -> "Aliyun upload region is missing");
         String endpoint = AssertUtils.nonempty(properties.getEndpoint(), () -> "Aliyun upload endpoint is missing");
-        this.domain = AssertUtils.nonempty(properties.getDomain(), () -> "Aliyun upload domain is missing");
+        this.domain = AssertUtils.nonempty(properties.getDomain(), () -> "Aliyun upload access domain is missing");
         this.directory = AssertUtils.nonempty(properties.getDirectory(), () -> "Aliyun upload directory is missing");
 
         // 初始化OSS客户端

+ 1 - 1
framework-upload/src/main/java/com/chelvc/framework/upload/support/TencentUploadHandler.java

@@ -40,7 +40,7 @@ public class TencentUploadHandler implements UploadHandler {
         String appid = AssertUtils.nonempty(properties.getAppid(), () -> "Tencent upload appid is missing");
         String secret = AssertUtils.nonempty(properties.getSecret(), () -> "Tencent upload secret is missing");
         String region = AssertUtils.nonempty(properties.getRegion(), () -> "Tencent upload region is missing");
-        this.domain = AssertUtils.nonempty(properties.getDomain(), () -> "Tencent upload domain is missing");
+        this.domain = AssertUtils.nonempty(properties.getDomain(), () -> "Tencent upload access domain is missing");
         this.directory = AssertUtils.nonempty(properties.getDirectory(), () -> "Tencent upload directory is missing");
 
         // 初始化COS客户端