Sfoglia il codice sorgente

修复登录报错

萤火科技 5 anni fa
parent
commit
7338ba2e0b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/store/service/Auth.php

+ 2 - 2
app/store/service/Auth.php

@@ -8,7 +8,7 @@
 // +----------------------------------------------------------------------
 // | Author: 萤火科技 <admin@yiovo.com>
 // +----------------------------------------------------------------------
-declare (strict_types = 1);
+declare (strict_types=1);
 
 namespace app\store\service;
 
@@ -58,7 +58,7 @@ class Auth
         // 商家登录信息
         $this->store = StoreUserService::getLoginInfo();
         // 当前用户信息
-        $this->user = $this->store['user'];
+        !empty($this->store) && $this->user = $this->store['user'];
     }
 
     /**