测试需求

dev_admin
daiao 6 years ago
parent c912b3887b
commit 75e495585d

@ -243,8 +243,8 @@ class ApplicationController < ActionController::Base
# 测试版前端需求 # 测试版前端需求
logger.info("######domain: #{request.domain}") logger.info("######domain: #{request.host}")
if request.domain == "http://47.96.87.25:48080" if request.host == "http://47.96.87.25:48080"
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'

Loading…
Cancel
Save