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 @@ 测试资源申请记录 - +