Merge pull request '会长可以看' (#17) from feature/1211 into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/17
master
张谷成 4 years ago
commit 1c804563e6

@ -397,7 +397,7 @@ class BaseController extends HomeController
// 推广公司
$promoteCompanyService = new PromoteCompanyService();
$promoteCompany = $promoteCompanyService->getCompanies([$topPromote['company_id']]);
if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM) { // 特殊公司不能看
if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM && $promote['level'] == 4) { // 特殊公司不能看
return false;
}

Loading…
Cancel
Save