Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_Ysl

dev_oauth
杨树林 6 years ago
commit 8ff2b8ff23

@ -13,6 +13,7 @@ class Videos::DispatchCallbackService < ApplicationService
case params['EventType']
when 'FileUploadComplete' then # 视频上传完成
video.file_url = params['FileUrl']
video.filesize = params['Size']
video.upload_success
video.save!
when 'SnapshotComplete' then # 封面截图完成

@ -0,0 +1,5 @@
class AddFilesizeToVideos < ActiveRecord::Migration[5.2]
def change
add_column :videos, :filesize, :integer, default: 0
end
end
Loading…
Cancel
Save