From 4dc81e3a8d9b65c2ba6a718301d821c85eed697c Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 1 Jul 2022 02:40:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/TestingResourceService.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Base/Service/TestingResourceService.class.php b/Application/Base/Service/TestingResourceService.class.php index c26ac2a3e..b9a76df31 100644 --- a/Application/Base/Service/TestingResourceService.class.php +++ b/Application/Base/Service/TestingResourceService.class.php @@ -488,7 +488,7 @@ class TestingResourceService /** * @todo 游戏猫只能每个资源数量只能为1 */ - if ($record['num'] != 1) { + if ($gameSetting['is_enable_num'] == 0 && $record['num'] != 1) { throw new \Exception('该游戏每次申请单项资源数量只能为1'); } }