diff --git a/app/services/videos/dispatch_callback_service.rb b/app/services/videos/dispatch_callback_service.rb index b32c87c4e..1c1b93572 100644 --- a/app/services/videos/dispatch_callback_service.rb +++ b/app/services/videos/dispatch_callback_service.rb @@ -12,7 +12,7 @@ class Videos::DispatchCallbackService < ApplicationService # TODO:: 拆分事件分发 case params['EventType'] when 'FileUploadComplete' then # 视频上传完成 - video.file_url = params['FileUrl'] + video.file_url = params['FileUrl'].gsub("http:", "https:") video.filesize = params['Size'] video.upload_success video.save!