dev_forum
jingquan huang 5 years ago
parent 116e52f0d7
commit c48ed86bc7

@ -210,7 +210,7 @@ class ApplicationController < ActionController::Base
end end
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除 if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
User.current = User.find 49610 User.current = User.find_by_phone("153880833362")
elsif params[:debug] == 'student' elsif params[:debug] == 'student'
User.current = User.find 8686 User.current = User.find 8686
elsif params[:debug] == 'admin' elsif params[:debug] == 'admin'

Loading…
Cancel
Save