fix 部分错误
This commit is contained in:
1 parent
d82261aa84
commit
fa66aa1c81
3 files changed
+6
-25
No files matched your search
@@ -372,6 +372,8 @@ def get_video(videoPath):
|
||||
video_save_path = os.path.join(video_tmp_path, videoPath)
|
||||
if not os.path.exists(os.path.dirname(video_save_path)):
|
||||
os.makedirs(os.path.dirname(video_save_path))
|
||||
if os.path.exists(video_save_path):
|
||||
return send_file(video_save_path)
|
||||
shutil.copy(original_img_path, video_save_path)
|
||||
return send_file(original_img_path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user