From 553ce102dfd2e55951a074090d1261f76f1fd014 Mon Sep 17 00:00:00 2001 From: tping Date: Tue, 15 Dec 2020 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=85=AC=E5=8F=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/BaseController.class.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index 1901379e1..eca59c3f5 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -394,13 +394,11 @@ class BaseController extends HomeController } } - $closePromoteLowest = [334, 370]; - if (in_array($topPromote['company_id'], $closePromoteLowest)) { - if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [4])) { - return true; - } else { - return false; - } + // 推广公司 + $promoteCompanyService = new PromoteCompanyService(); + $promoteCompany = $promoteCompanyService->getCompanies([$topPromote['company_id']]); + if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM) { // 特殊公司不能看 + return false; } if ($topPromote['can_view_recharge'] == 1) {