zrd 1 개월 전
부모
커밋
c441f2daad

+ 7 - 7
yudao-module-infra/yudao-module-infra-biz/src/test/java/cn/iocoder/yudao/module/infra/framework/file/core/s3/S3FileClientTest.java

@@ -32,9 +32,9 @@ public class S3FileClientTest {
     public void testAliyun() throws Exception {
         S3FileClientConfig config = new S3FileClientConfig();
         // 配置成你自己的
-        config.setAccessKey(System.getenv("ALIYUN_ACCESS_KEY"));
-        config.setAccessSecret(System.getenv("ALIYUN_SECRET_KEY"));
-        config.setBucket("yunai-aoteman");
+        config.setAccessKey("LTAI5tN5tMgUuc7BVRa1Vbss");
+        config.setAccessSecret("59aMn9CF13BWiQ9aDZrdnwi6csopmL");
+        config.setBucket("ywd1");
         config.setDomain(null); // 如果有自定义域名,则可以设置。http://ali-oss.iocoder.cn
         // 默认北京的 endpoint
         config.setEndpoint("oss-cn-beijing.aliyuncs.com");
@@ -48,12 +48,12 @@ public class S3FileClientTest {
     public void testQCloud() throws Exception {
         S3FileClientConfig config = new S3FileClientConfig();
         // 配置成你自己的
-        config.setAccessKey(System.getenv("QCLOUD_ACCESS_KEY"));
-        config.setAccessSecret(System.getenv("QCLOUD_SECRET_KEY"));
-        config.setBucket("aoteman-1255880240");
+        config.setAccessKey("GJArNiqmVUGqFSccQl0DIHE2e7e071xr");
+        config.setAccessSecret("AKIDoV3RefhpogO2e5MRM3ykQwHP0Qp33qQn");
+        config.setBucket("ywd1-1353426056");
         config.setDomain(null); // 如果有自定义域名,则可以设置。http://tengxun-oss.iocoder.cn
         // 默认上海的 endpoint
-        config.setEndpoint("cos.ap-shanghai.myqcloud.com");
+        config.setEndpoint("cos.ap-nanjing.myqcloud.com");
 
         // 执行上传
         testExecuteUpload(config);