|
|
@ -394,14 +394,12 @@ 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) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|