|
|
@ -415,6 +415,8 @@ class EcCoursesController < ApplicationController
|
|
|
|
def score_level
|
|
|
|
def score_level
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html{
|
|
|
|
format.html{
|
|
|
|
|
|
|
|
Rails.logger.info("1111111111111111111template_major: #{@template_major}")
|
|
|
|
|
|
|
|
Rails.logger.info("1111111111111111111is_manager: #{@is_manager}")
|
|
|
|
render "/common/index", :layout => false
|
|
|
|
render "/common/index", :layout => false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
format.json{
|
|
|
|
format.json{
|
|
|
@ -430,8 +432,8 @@ class EcCoursesController < ApplicationController
|
|
|
|
{score: 70, level: "中"},
|
|
|
|
{score: 70, level: "中"},
|
|
|
|
{score: 60, level: "差"}]
|
|
|
|
{score: 60, level: "差"}]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
Rails.logger.info("template_major: #{@template_major}")
|
|
|
|
Rails.logger.info("222222222222222222222template_major: #{@template_major}")
|
|
|
|
Rails.logger.info("is_manager: #{@is_manager}")
|
|
|
|
Rails.logger.info("2222222222222222222222222is_manager: #{@is_manager}")
|
|
|
|
render :json => {levels: ls, is_manager: @is_manager}
|
|
|
|
render :json => {levels: ls, is_manager: @is_manager}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|