Merge pull request 'feature/1211' (#14) from feature/1211 into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/14
master
张谷成 4 years ago
commit 0fead62cfc

@ -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