|
|
|
@ -241,14 +241,18 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
User.current = User.find 57703
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
|
|
|
|
|
User.current = User.find 81403
|
|
|
|
|
elsif params[:debug] == 'student'
|
|
|
|
|
User.current = User.find 8686
|
|
|
|
|
elsif params[:debug] == 'admin'
|
|
|
|
|
User.current = User.find 1
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 测试版前端需求
|
|
|
|
|
logger.info("######domain: #{request.domain}")
|
|
|
|
|
if request.domain == "http://47.96.87.25:48080"
|
|
|
|
|
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
|
|
|
|
|
User.current = User.find 81403
|
|
|
|
|
elsif params[:debug] == 'student'
|
|
|
|
|
User.current = User.find 8686
|
|
|
|
|
elsif params[:debug] == 'admin'
|
|
|
|
|
User.current = User.find 1
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
# User.current = User.find 81403
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|