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

dev_unstable
杨树明 6 years ago
commit 89bde36e4f

@ -10,9 +10,7 @@ class Users::VideoAuthsController < Users::BaseController
def update
video = observed_user.videos.find_by(uuid: params[:video_id])
if video.blank?
video = observed_user.videos.create!(uuid: params[:video_id], title: params[:title], cover_url: params[:cover_url])
end
return render_error('该视频凭证不存在') if video.blank?
result = AliyunVod::Service.refresh_upload_video(video.uuid)
render_ok(data: result)

Loading…
Cancel
Save