From 1fa630a479ddeae697638c32d28a9699ceb2559f Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 5 Oct 2019 12:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E8=87=B3=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 1 + app/views/shixuns/send_to_course.json.jbuilder | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 07107b91f..d0bd4fb0d 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -2,6 +2,7 @@ class ShixunsController < ApplicationController include ShixunsHelper include ApplicationHelper include ElasticsearchAble + include CoursesHelper before_action :require_login, :check_auth, except: [:download_file, :index, :menus, :show, :show_right, :ranking_list, :discusses, :collaborators, :fork_list, :propaedeutics] diff --git a/app/views/shixuns/send_to_course.json.jbuilder b/app/views/shixuns/send_to_course.json.jbuilder index b2e30f985..a6a48fb09 100644 --- a/app/views/shixuns/send_to_course.json.jbuilder +++ b/app/views/shixuns/send_to_course.json.jbuilder @@ -1,3 +1,4 @@ json.status 1 json.message "发送成功" -json.course_id @course.id \ No newline at end of file +json.course_id @course.id +json.module_url module_url(@course.none_hidden_course_modules) \ No newline at end of file