Browse Source

修复:owners获取id回退到之前版本

pull/347/head
yystopf 1 year ago
parent
commit
bd19bb1251
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/owners_controller.rb

+ 2
- 1
app/controllers/owners_controller.rb View File

@@ -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?


Loading…
Cancel
Save