From 19458394c322086ecff1de36f9e1530956f6ff59 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 13 Dec 2021 14:26:36 +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/Home/Controller/GameController.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/GameController.class.php b/Application/Home/Controller/GameController.class.php index 4392dcf12..bc86868cc 100644 --- a/Application/Home/Controller/GameController.class.php +++ b/Application/Home/Controller/GameController.class.php @@ -2101,11 +2101,8 @@ class GameController extends BaseController throw new \Exception('请联系市场专员开启'); } - $topPromote = $promoteService->getTopPromote($promote); - if (in_array($topPromote['account'], ['zhangle', 'changwanwl', 'youwan', 'youwan2022'])) { - if (in_array($gameId, [293, 294])) { - throw new \Exception('不能推广该游戏'); - } + if (!$promoteService->checkPromoteLimitRule($promote, $gameId)) { + throw new \Exception('不能推广该游戏'); } }