Explorar o código

暂时注释删除图片

lang %!s(int64=3) %!d(string=hai) anos
pai
achega
25d6cad05c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Controller/AiController.py

+ 2 - 2
Controller/AiController.py

@@ -379,8 +379,8 @@ class AiView(View):
                 # 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')
+            # self.del_path(dir_path)
+            # self.del_path(dir_path + '.jpg')
             return True
         except Exception as e:
             print(repr(e))