推广平台->84推广员开权限

master
chenxiaojun 5 years ago
parent c4f7a928f9
commit 74f88da239

@ -38,7 +38,7 @@ class PromoteController extends BaseController
$this->meta_title = "首页"; $this->meta_title = "首页";
$loginPromote = $this->getLoginPromote(); $loginPromote = $this->getLoginPromote();
$whiteList = [1, 8]; $whiteList = [1, 8, 84];
$isOpenQuery = in_array($loginPromote['id'], $whiteList) || in_array($loginPromote['parent_id'], $whiteList) || in_array($loginPromote['grand_id'], $whiteList) ? true : false; $isOpenQuery = in_array($loginPromote['id'], $whiteList) || in_array($loginPromote['parent_id'], $whiteList) || in_array($loginPromote['grand_id'], $whiteList) ? true : false;
if (!$isOpenQuery) { if (!$isOpenQuery) {

@ -48,7 +48,7 @@
</if> </if>
</div> </div>
<?php <?php
$whiteList = [1, 8, 2]; $whiteList = [1, 8, 2, 84];
$isOpenQuery = in_array($loginer['id'], $whiteList) || in_array($loginer['parent_id'], $whiteList) || in_array($loginer['grand_id'], $whiteList) ? true : false; $isOpenQuery = in_array($loginer['id'], $whiteList) || in_array($loginer['parent_id'], $whiteList) || in_array($loginer['grand_id'], $whiteList) ? true : false;
?> ?>
<?php if($isOpenQuery):?> <?php if($isOpenQuery):?>

Loading…
Cancel
Save