Browse Source

更改:debug参数回退

pull/347/head
yystopf 2 years ago
parent
commit
240e086232
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
app/controllers/application_controller.rb View File

@@ -348,7 +348,7 @@ class ApplicationController < ActionController::Base
User.current = User.find 8686
elsif params[:debug] == 'admin'
logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
user = User.find 102
user = User.find 36480
User.current = user
cookies.signed[:user_id] = user.id
end


Loading…
Cancel
Save