|
|
|
@ -3,9 +3,11 @@
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
|
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
|
|
|
|
|
|
class BaseController extends HomeController
|
|
|
|
|
{
|
|
|
|
|
protected $promotePermissions;
|
|
|
|
|
protected $loginPromote = null;
|
|
|
|
|
protected $canViewUserRecharge = true;
|
|
|
|
|
|
|
|
|
@ -379,7 +381,11 @@ class BaseController extends HomeController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ($permission == 'view-user-recharge') {
|
|
|
|
|
return false;
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
$topPromote = $promoteService->getTopPromote($promote);
|
|
|
|
|
if ($topPromote['can_view_recharge'] == 1) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|