|
|
|
@ -58,8 +58,7 @@ class EcsController < ApplicationController
|
|
|
|
|
# 获取工程认证头部url
|
|
|
|
|
# GET: /ecs/get_navigation_url
|
|
|
|
|
def get_navigation_url
|
|
|
|
|
ec_user = EcSchoolUser.where(:user_id => User.current.id).first
|
|
|
|
|
ec_url = "#{department_ecs_path(:school_id => ec_user.school_id)}" if ec_user
|
|
|
|
|
ec_url = "#{department_ecs_path(:school_id => User.current.ec_school)}" if User.current.ec_school.present?
|
|
|
|
|
render :json => {ec_url: ec_url, project_packages_url: "/crowdsourcing" }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|