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..c0a5a7208 100644 --- a/Application/Admin/View/TestingResource/apply.html +++ b/Application/Admin/View/TestingResource/apply.html @@ -186,6 +186,7 @@ body {
资源数量: 1
- +资源数量: 1
- +