特殊公司

master
tping 4 years ago
parent 0fd16f89d8
commit 553ce102df

@ -394,13 +394,11 @@ 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 {
return false;
}
// 推广公司
$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) {

Loading…
Cancel
Save