diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 1df30532d..c70f053f6 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -113,7 +113,7 @@ class UsersController < ApplicationController def info @code = 1001 @message = "用户不存在" - if params[:token].present? && current_user.logged? + if params[:token].present? @user = User.try_to_autologin(params[:token]) if @user.present? @code = 1000