From bd19bb1251886521379d026e69ed40077cea0143 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 8 Oct 2024 11:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9Aowners=E8=8E=B7?= =?UTF-8?q?=E5=8F=96id=E5=9B=9E=E9=80=80=E5=88=B0=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/owners_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/owners_controller.rb b/app/controllers/owners_controller.rb index 7ca5f0d39..ad3a70423 100644 --- a/app/controllers/owners_controller.rb +++ b/app/controllers/owners_controller.rb @@ -11,7 +11,8 @@ class OwnersController < ApplicationController end def show - login = params[:id].to_s[0..-6] + # login = params[:id].to_s[0..-6] + login = params[:id].to_s @owner = Owner.find_by(login: login) || Owner.find_by(id: login) clear_user_cookie unless @owner.present? return render_not_found unless @owner.present?