From 9fd31a73e59a43b3f78bce8bff4d4e6739c56084 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 8 Feb 2020 13:47:25 +0800 Subject: [PATCH] 1 --- app/services/videos/batch_publish_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/videos/batch_publish_service.rb b/app/services/videos/batch_publish_service.rb index aa2467f7a..ce6bdb163 100644 --- a/app/services/videos/batch_publish_service.rb +++ b/app/services/videos/batch_publish_service.rb @@ -17,8 +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}") + Rails.logger.info("video.processing_video_apply:#{video.blank? || video.processing_video_apply}") next if video.blank? || video.processing_video_apply.present? raise Error, '视频还未上传完成' if video.vod_uploading?