|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
namespace Home\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Base\Service\PromoteCompanyService;
|
|
|
|
use Think\Controller;
|
|
|
|
use Think\Controller;
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
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])) {
|
|
|
|
if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|