|
|
|
@ -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
|
|
|
|
|