|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
|
|
|
|
|
|
use Base\Service\PromoteCompanyService;
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
|
|
|
|
|
@ -393,8 +394,12 @@ class BaseController extends HomeController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$closePromoteLowest = [334, 370];
|
|
|
|
|
if (in_array($topPromote['company_id'], $closePromoteLowest)) {
|
|
|
|
|
// 推广公司
|
|
|
|
|
$promoteCompanyService = new PromoteCompanyService();
|
|
|
|
|
$promoteCompanyService->getCompanies([$topPromote['company_id']]);
|
|
|
|
|
if ($promoteCompanyService['type'] == $promoteCompanyService::TYPE_CUSTOM) {
|
|
|
|
|
// $closePromoteLowest = [334, 370];
|
|
|
|
|
// if (in_array($topPromote['company_id'], $closePromoteLowest)) {
|
|
|
|
|
if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) {
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|