From 8c1cc90185fe777388952ad9eb50c0de7495f2f5 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 1 Jul 2022 01:13:24 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=8F=AF=E6=89=8B=E5=8A=A8=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TestingResourceController.class.php | 5 ++++- Application/Admin/View/TestingResource/apply.html | 14 ++++++++++---- .../Base/Tool/GameResource/LeyouClient.class.php | 1 + .../TestingResourceController.class.php | 3 +++ .../Home/View/default/TestingResource/apply.html | 15 +++++++++++---- 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 6ed20c1a5..60503e2b7 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -438,7 +438,8 @@ class TestingResourceController extends ThinkController } $hasItf = 0; - + $isEnableNum = 0; + $servers = []; $bindingRole = null; if ($role) { @@ -469,6 +470,7 @@ class TestingResourceController extends ThinkController $gameSetting = $repository->getGameSettingByGameId($role['game_id']); $hasItf = $gameSetting ? $gameSetting['has_itf'] : 0; + $isEnableNum = $gameSetting ? $gameSetting['is_enable_num'] : 0; } $testingResourceService = new TestingResourceService(); @@ -476,6 +478,7 @@ class TestingResourceController extends ThinkController $games = M('game', 'tab_')->field(['id' , 'game_name'])->select(); + $this->assign('isEnableNum', $isEnableNum); $this->assign('hasItf', $hasItf); $this->assign('games', $games); $this->assign('servers', $servers); diff --git a/Application/Admin/View/TestingResource/apply.html b/Application/Admin/View/TestingResource/apply.html index 557f12371..bd00ef9d1 100644 --- a/Application/Admin/View/TestingResource/apply.html +++ b/Application/Admin/View/TestingResource/apply.html @@ -186,6 +186,7 @@ body {
资源数量: 1
- +资源数量: 1
- +