From 530dded4e7be029fcb790544f5a5fd55803162ea Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 12 Nov 2020 16:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/TestingResourceService.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Application/Base/Service/TestingResourceService.class.php b/Application/Base/Service/TestingResourceService.class.php index 73b20c737..43788a7ae 100644 --- a/Application/Base/Service/TestingResourceService.class.php +++ b/Application/Base/Service/TestingResourceService.class.php @@ -513,12 +513,20 @@ class TestingResourceService public function getResourceTypes($game) { + $gameSetting = $this->repository->getGameSettingByGameId($game['id']); + if ($gameSetting['has_itf'] == 0) { + return []; + } $gameResource = new GameResource($game); return $gameResource->getResourceTypes(); } public function getResources($game, $typeId = null) { + $gameSetting = $this->repository->getGameSettingByGameId($game['id']); + if ($gameSetting['has_itf'] == 0) { + return []; + } $gameResource = new GameResource($game); return $gameResource->getResources($typeId); }