修改bug

master
ELF 5 years ago
parent 4d0359aaba
commit b7964e19d0

@ -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');

Loading…
Cancel
Save