Przeglądaj źródła

修改s3上传地址

peng 1 rok temu
rodzic
commit
a729c5fb86
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Controller/TestApi.py

+ 1 - 1
Controller/TestApi.py

@@ -1151,7 +1151,7 @@ class testView(View):
         file_name = file.name
         file_key = "pc/{}".format(file_name)
         try:
-            s3 = AmazonS3Util(AWS_ACCESS_KEY_ID[1], AWS_SECRET_ACCESS_KEY[1], AWS_SES_ACCESS_REGION)
+            s3 = AmazonS3Util(AWS_ACCESS_KEY_ID[0], AWS_SECRET_ACCESS_KEY[0], 'cn-northwest-1')
             # 存储桶
             bucket = "ansjerfilemanager"
             s3.upload_file_obj(