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

* 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder:
  资源外链
newyslclassrooms
harry 5 years ago
commit 738449b202

@ -195,6 +195,8 @@ class FilesController < ApplicationController
attachment = Attachment.new attachment = Attachment.new
attachment.container = @course attachment.container = @course
attachment.course_second_category_id = course_second_category_id attachment.course_second_category_id = course_second_category_id
attachment.filename = params[:name]
attachment.link = params[:link]
attachment.description = params[:description] attachment.description = params[:description]
attachment.is_public = params[:is_public] && @course.is_public == 1 ? 1 : 0 attachment.is_public = params[:is_public] && @course.is_public == 1 ? 1 : 0
attachment.is_publish = @atta_is_publish attachment.is_publish = @atta_is_publish

Loading…
Cancel
Save