Browse Source

修改ai上传图片后缀

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

+ 1 - 1
Controller/AiController.py

@@ -186,7 +186,7 @@ class AiView(View):
 
             # 上传缩略图到s3
             for i, val in enumerate(file_path_list):
-                upload_path = "{uid}/{channel}/{n_time}_{i}.jpg".format(uid=uid, channel=channel,
+                upload_path = "{uid}/{channel}/{n_time}_{i}.jpeg".format(uid=uid, channel=channel,
                                                                              n_time=n_time,i=i)  # 封面图
                 thread_task = threading.Thread(target=self.upload_s3, args=(val, upload_path))
                 thread_task.start()