From 3c6ca71bb64ed3d550fe97c3aa58018d64ac230b Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Fri, 6 Dec 2019 11:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=BB=91=E6=89=8B=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/GameModel.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Model/GameModel.class.php b/Application/Admin/Model/GameModel.class.php index a83665f45..7a7afb347 100644 --- a/Application/Admin/Model/GameModel.class.php +++ b/Application/Admin/Model/GameModel.class.php @@ -76,12 +76,12 @@ class GameModel extends Model{ */ public function detail($id,$display_site=''){ /* 获取基础数据 */ - $map['relation_game_id']=$id; + $map['relation_game_id'] = $id; $map['game_status'] = 1; $map['display_site'] = ['like','%'.$display_site.'%']; $info = $this->field(true)->where($map)->group('relation_game_id')->select(); - $info= game_merge($info,$map); - $info=reset($info); + $info = game_merge($info,$map); + $info = reset($info); if(!(is_array($info) || $info['game_status']!=1)){ $this->error = '游戏被禁用或已删除!'; return false;