From ada03e45ea5775ed3ae53da224a04e2e8bd4d478 Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Tue, 15 Feb 2022 16:49:20 +0800 Subject: [PATCH] =?UTF-8?q?debug=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 53070732..9afdc080 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -274,12 +274,12 @@ class ApplicationController < ActionController::Base logger.info("subdomain:#{request.subdomain}") if request.subdomain != "www" if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除 - User.current = User.find 81403 + User.current = User.find 6 elsif params[:debug] == 'student' - User.current = User.find 8686 + User.current = User.find 7 elsif params[:debug] == 'admin' logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....." - user = User.find 36480 + user = User.find 1 User.current = user cookies.signed[:user_id] = user.id end