|
|
|
@ -17,6 +17,8 @@ class Videos::BatchPublishService < ApplicationService
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
|
video_params.each do |param|
|
|
|
|
|
video = user.videos.find_by(uuid: param[:video_id])
|
|
|
|
|
Rails.logger.info("video.processing_video_apply:#{video.processing_video_apply}")
|
|
|
|
|
Rails.logger.info("video.processing_video_apply:#{video}")
|
|
|
|
|
next if video.blank? || video.processing_video_apply.present?
|
|
|
|
|
|
|
|
|
|
raise Error, '视频还未上传完成' if video.vod_uploading?
|
|
|
|
|