From b268f1fce6308bc24c1bfac103bf0d87b1ca159b Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 11 Oct 2019 13:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/QueryController.class.php | 5 ++++- .../Home/View/default/Query/achievement.html | 21 +------------------ 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index c4cb44c95..bd49d7530 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1891,7 +1891,7 @@ class QueryController extends BaseController $gameId = I('game_id', 0); $serverId = I('server_id', 0); $parentId = I('parent_id', 0); - + $loginPromote = $this->getLoginPromote(); $promote = null; @@ -1900,6 +1900,8 @@ class QueryController extends BaseController } else { $promote = $loginPromote; } + + $games = $this->getGamesByPromote($promote); $subPromotes = M('promote', 'tab_')->field(['id', 'account', 'real_name'])->where(['parent_id' => $promote['id']])->select(); @@ -1976,6 +1978,7 @@ class QueryController extends BaseController $level = 3; } + $this->assign('games', $games); $this->assign('level', $level); $this->assign('subPromotes', $subPromotes); $this->assign('records', $records); diff --git a/Application/Home/View/default/Query/achievement.html b/Application/Home/View/default/Query/achievement.html index c85b258e3..82c62f7cc 100644 --- a/Application/Home/View/default/Query/achievement.html +++ b/Application/Home/View/default/Query/achievement.html @@ -23,7 +23,7 @@