瀏覽代碼

wes 萤火会员分销商城

APPLE 2 年之前
父節點
當前提交
8740689bdb
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      application/store/controller/Controller.php
  2. 2 1
      application/store/service/Auth.php

+ 1 - 1
application/store/controller/Controller.php

@@ -143,7 +143,7 @@ class Controller extends \think\Controller
         if (in_array($this->routeUri, $this->allowAllAction)) {
             return true;
         }
-        var_dump($this->store);
+
         // 验证登录状态
         if (empty($this->store)
             || (int)$this->store['is_login'] !== 1

+ 2 - 1
application/store/service/Auth.php

@@ -124,7 +124,8 @@ class Auth
     private function checkAccess($url)
     {
         // 超级管理员无需验证
-        if ($this->user['is_super']) {
+        $isSupper = isset($this->user['is_super'])? $this->user['is_super'] : false;
+        if ($isSupper) {
             return true;
         }
         // 验证当前请求是否在白名单