diff --git a/app/services/videos/dispatch_callback_service.rb b/app/services/videos/dispatch_callback_service.rb index e4ad1628a..b32c87c4e 100644 --- a/app/services/videos/dispatch_callback_service.rb +++ b/app/services/videos/dispatch_callback_service.rb @@ -20,6 +20,9 @@ class Videos::DispatchCallbackService < ApplicationService return if video.cover_url.present? video.update!(cover_url: params['CoverUrl']) + when 'TranscodeComplete' then # 转码完成 + return if video.play_url.present? + video.update!(play_url: params['FileUrl']) end rescue => ex