From 329926643126d14ccb013ded728d48dab27b5e80 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 23 Mar 2020 16:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/GameController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/GameController.class.php b/Application/Home/Controller/GameController.class.php index 7ddc887af..bc69f9338 100644 --- a/Application/Home/Controller/GameController.class.php +++ b/Application/Home/Controller/GameController.class.php @@ -46,8 +46,13 @@ class GameController extends BaseController $promoteId = $loginPromote['id']; } + $promote = $loginPromote; + if ($promoteId > 0) { + $promote = M('promote', 'tab_')->where(['id' => $promoteId])->find(); + } + $promoteService = new PromoteService(); - $gameIds = $promoteService->getVisibleGameIds($loginPromote); + $gameIds = $promoteService->getVisibleGameIds($promote); if ($baseGameId > 0) { $baseGame = M('base_game', 'tab_')->where(['id' => $baseGameId])->find(); $gameIds = [];