From 777fec4c0052a53856bc56c45db124ec680c1127 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 21 Aug 2019 16:04:14 +0800 Subject: [PATCH] =?UTF-8?q?TPI=E5=AE=9E=E8=AE=AD=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9A=84=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 583de9ae..e59a2bad 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -178,8 +178,8 @@ class ManagementsController < ApplicationController @g = Gitlab.client if params[:search] if params[:search].to_i.to_s == params[:search].to_s - myshixun_id = Game.where(myshixun_id => params[:search].to_i).pluck(:myshixun_id) - game_myshixun_id = Game.where(id => params[:search].to_i).pluck(:myshixun_id) + myshixun_id = Game.where(:myshixun_id => params[:search].to_i).pluck(:myshixun_id) + game_myshixun_id = Game.where(:id => params[:search].to_i).pluck(:myshixun_id) myshixun_id = myshixun_id + game_myshixun_id else myshixun_id = Game.where(:identifier => params[:search]).pluck(:myshixun_id)