|
|
@ -41,7 +41,8 @@ class Videos::BatchPublishService < ApplicationService
|
|
|
|
# 如果是课堂上传则创建课堂记录
|
|
|
|
# 如果是课堂上传则创建课堂记录
|
|
|
|
Rails.logger.info("#####param: #{ param[:course_id]}")
|
|
|
|
Rails.logger.info("#####param: #{ param[:course_id]}")
|
|
|
|
if param[:course_id].present?
|
|
|
|
if param[:course_id].present?
|
|
|
|
video.course_videos.create!(course_id: param[:course_id])
|
|
|
|
course_second_category_id = params[:category_id] || 0
|
|
|
|
|
|
|
|
video.course_videos.create!(course_id: param[:course_id], course_second_category_id: course_second_category_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|