From b7212450e3b76740193cd1c15cc8195d48d36dc1 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 4 Mar 2020 11:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E4=B8=8A=E4=BC=A0=E5=90=8E?= =?UTF-8?q?=EF=BC=8Chttp=E8=BD=AC=E6=8D=A2=E6=88=90htpps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/videos/dispatch_callback_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!