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])) {