Browse Source

新增判断ai上传地区
ai上传图4张改为3张

lang 3 years ago
parent
commit
1b22a33903
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Controller/AiController.py

+ 3 - 3
Controller/AiController.py

@@ -385,9 +385,9 @@ class AiView(View):
 
             for file_path, upload_path in file_dict.items():
 
-                    upload_data = open(file_path, "rb")
-                    # upload_key = "test"
-                    s3.Bucket(bucket).put_object(Key=upload_path, Body=upload_data)
+                upload_data = open(file_path, "rb")
+                # upload_key = "test"
+                s3.Bucket(bucket).put_object(Key=upload_path, Body=upload_data)
                 # 需要删除图片
                 # self.del_path(dir_path)
                 # self.del_path(dir_path + '.jpg')