From f9351e259d557b81672cd63b86dca6d74413363e Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 12 Mar 2019 20:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 5 +++++ app/controllers/ec_years_controller.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index 3634ca28..0e0862c8 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -430,6 +430,8 @@ class EcCoursesController < ApplicationController {score: 70, level: "中"}, {score: 60, level: "差"}] end + Rails.logger.info("template_major: #{@template_major}") + Rails.logger.info("is_manager: #{@is_manager}") render :json => {levels: ls, is_manager: @is_manager} } end @@ -596,6 +598,9 @@ class EcCoursesController < ApplicationController end end + Rails.logger.info("template_major: #{@template_major}") + Rails.logger.info("is_manager: #{@is_manager}") + return {ec_year_id: @ec_course.ec_year_id, ec_course_id: @ec_course.id, course_targets: targets, requirements: requirements, is_manager: @is_manager} end diff --git a/app/controllers/ec_years_controller.rb b/app/controllers/ec_years_controller.rb index 12ad6212..c2563867 100644 --- a/app/controllers/ec_years_controller.rb +++ b/app/controllers/ec_years_controller.rb @@ -82,7 +82,7 @@ class EcYearsController < ApplicationController import_url = "/ec_major_schools/#{@ec_major_school.id}/academic_years/#{@year.id}/import_students" render :json => {template_url: template_url, ec_students: ec_students, total_page: total_page, import_url: import_url, - show_name: show_name, :total_student => total_student} + show_name: show_name, :total_student => total_student, :is_manager => @template_major} } end end