|
|
@ -253,7 +253,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
|
|
|
|
|
|
|
# 测试版前端需求
|
|
|
|
# 测试版前端需求
|
|
|
|
logger.info("subdomain:#{request.subdomain}")
|
|
|
|
logger.info("subdomain:#{request.subdomain}")
|
|
|
|
if request.subdomain == "pre-newweb"
|
|
|
|
if request.subdomain == "test-newweb"
|
|
|
|
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
|
|
|
|
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
|
|
|
|
User.current = User.find 81403
|
|
|
|
User.current = User.find 81403
|
|
|
|
elsif params[:debug] == 'student'
|
|
|
|
elsif params[:debug] == 'student'
|
|
|
|