wesmiler 2 years ago
parent
commit
a73d2edd5f
1 changed files with 2 additions and 7 deletions
  1. 2 7
      source/application/store/controller/Controller.php

+ 2 - 7
source/application/store/controller/Controller.php

@@ -56,16 +56,13 @@ class Controller extends \think\Controller
         // 商家登录信息
         $this->store = Session::get('yoshop_store');
         $this->store = $this->store? $this->store : [];
-        var_dump($this->store);
+
         // 当前路由信息
         $this->getRouteinfo();
-        var_dump(2);
         // 验证登录状态
         $this->checkLogin();
-        var_dump(3);
         // 验证当前页面权限
         $this->checkPrivilege();
-        var_dump(4);
         // 全局layout
         $this->layout();
     }
@@ -79,12 +76,10 @@ class Controller extends \think\Controller
      */
     private function checkPrivilege()
     {
-        var_dump(5);
-        var_dump($this->routeUri);
         if ($this->routeUri === 'index/index') {
             return true;
         }
-        var_dump(6);
+
         if (!Auth::getInstance()->checkPrivilege($this->routeUri)) {
             throw new BaseException(['msg' => '很抱歉,没有访问权限']);
         }