|
|
@ -39,7 +39,7 @@ class PromoteController extends BaseController
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
$loginPromote = $this->getLoginPromote();
|
|
|
|
|
|
|
|
|
|
|
|
$whiteList = [1, 8];
|
|
|
|
$whiteList = [1, 8];
|
|
|
|
$isOpenQuery = in_array($loginer['id'], $whiteList) || in_array($loginer['parent_id'], $whiteList) || in_array($loginer['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) {
|
|
|
|
$this->display('prepare');
|
|
|
|
$this->display('prepare');
|
|
|
|