Merge branch 'feature/promote_perm' of 47.111.118.107:wmtx/platform into feature/promote_perm

master
yulingwei 5 years ago
commit 569fc37e40

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

Loading…
Cancel
Save