Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

merge aliyun
dev_video
tangjiang 5 years ago
commit e18f0d00ec

@ -136,6 +136,12 @@ class CollegesController < ApplicationController
private private
# def require_login
# return if User.current.logged?
#
# redirect_to "/login?back_url=#{CGI::escape(request.fullpath)}"
# end
def check_college_present! def check_college_present!
return if current_college.present? return if current_college.present?

@ -8,6 +8,10 @@ class MainController < ApplicationController
end end
def index def index
domain_session = params[:_educoder_session]
if domain_session
cookies[:_educoder_session] = domain_session
end
render file: 'public/react/build/index.html', :layout => false render file: 'public/react/build/index.html', :layout => false
end end
end end
Loading…
Cancel
Save