From 33ef14e1af6a5e22414bca1487c189c462fefd37 Mon Sep 17 00:00:00 2001 From: tping Date: Mon, 7 Dec 2020 18:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=A4=96=E5=9B=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/BaseController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Home/Controller/BaseController.class.php b/Application/Home/Controller/BaseController.class.php index 95da267e3..74607ac32 100644 --- a/Application/Home/Controller/BaseController.class.php +++ b/Application/Home/Controller/BaseController.class.php @@ -396,8 +396,8 @@ class BaseController extends HomeController // 推广公司 $promoteCompanyService = new PromoteCompanyService(); - $promoteCompanyService->getCompanies([$topPromote['company_id']]); - if ($promoteCompanyService['type'] == $promoteCompanyService::TYPE_CUSTOM) { + $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])) {