特殊公司

master
tping 4 years ago
parent 0fd16f89d8
commit 553ce102df

@ -394,14 +394,12 @@ class BaseController extends HomeController
}
}
$closePromoteLowest = [334, 370];
if (in_array($topPromote['company_id'], $closePromoteLowest)) {
if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [4])) {
return true;
} else {
// 推广公司
$promoteCompanyService = new PromoteCompanyService();
$promoteCompany = $promoteCompanyService->getCompanies([$topPromote['company_id']]);
if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM) { // 特殊公司不能看
return false;
}
}
if ($topPromote['can_view_recharge'] == 1) {
return true;

Loading…
Cancel
Save