wesmiler 3 роки тому
батько
коміт
d143d980d1
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      source/application/store/controller/Controller.php

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

@@ -55,6 +55,7 @@ class Controller extends \think\Controller
     {
         // 商家登录信息
         $this->store = Session::get('yoshop_store');
+        $this->store = $this->store? $this->store : [];
         // 当前路由信息
         $this->getRouteinfo();
         // 验证登录状态
@@ -147,7 +148,7 @@ class Controller extends \think\Controller
             return true;
         }
         // 验证登录状态
-        var_dump($this->store);
+
         if (empty($this->store)
             || (int)$this->store['is_login'] !== 1
             || !isset($this->store['wxapp'])