From 5cf8f2ea10228a26e47b0a47f650c5f9cb5525fd Mon Sep 17 00:00:00 2001 From: tping Date: Tue, 8 Dec 2020 14:31:50 +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 | 10 ++-------- Application/Home/View/default/Public/promote_base.html | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index 74607ac32..eca59c3f5 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -397,14 +397,8 @@ class BaseController extends HomeController // 推广公司 $promoteCompanyService = new PromoteCompanyService(); $promoteCompany = $promoteCompanyService->getCompanies([$topPromote['company_id']]); - if ($promoteCompany['type'] == $promoteCompanyService::TYPE_CUSTOM) { -// $closePromoteLowest = [334, 370]; -// if (in_array($topPromote['company_id'], $closePromoteLowest)) { - if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) { - return true; - } else { - return false; - } + if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM) { // 特殊公司不能看 + return false; } if ($topPromote['can_view_recharge'] == 1) { diff --git a/Application/Home/View/default/Public/promote_base.html b/Application/Home/View/default/Public/promote_base.html index 4e97edf16..e60d47057 100644 --- a/Application/Home/View/default/Public/promote_base.html +++ b/Application/Home/View/default/Public/promote_base.html @@ -121,7 +121,7 @@ 测试资源申请记录 - +