|
|
@ -391,6 +391,19 @@ class BaseController extends HomeController
|
|
|
|
if ($permission == 'view-user-recharge') {
|
|
|
|
if ($permission == 'view-user-recharge') {
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$topPromote = $promoteService->getTopPromote($promote);
|
|
|
|
$topPromote = $promoteService->getTopPromote($promote);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 市场部特殊推广公司的规则
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
$onlyPresidentList = [330, 331, 332];
|
|
|
|
|
|
|
|
if (in_array($topPromote['company_id'], $onlyPresidentList)) {
|
|
|
|
|
|
|
|
if ($topPromote['can_view_recharge'] == 1 && $promote['level'] == 1) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($topPromote['can_view_recharge'] == 1) {
|
|
|
|
if ($topPromote['can_view_recharge'] == 1) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|