Browse Source

删除ai上传的图片

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

+ 2 - 2
Controller/AiController.py

@@ -389,8 +389,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))