特殊公司

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)) { $promoteCompanyService = new PromoteCompanyService();
if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [4])) { $promoteCompany = $promoteCompanyService->getCompanies([$topPromote['company_id']]);
return true; if ($promoteCompany[$topPromote['company_id']]['type'] == $promoteCompanyService::TYPE_CUSTOM) { // 特殊公司不能看
} else { return false;
return false;
}
} }
if ($topPromote['can_view_recharge'] == 1) { if ($topPromote['can_view_recharge'] == 1) {

Loading…
Cancel
Save