Browse Source

wes 萤火会员分销商城

APPLE 2 years ago
parent
commit
35c7848710
2 changed files with 6 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 4 1
      application/store/service/Auth.php

+ 2 - 0
.gitignore

@@ -4,3 +4,5 @@
 .env.php
 .env
 
+
+/install.sql

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

@@ -75,8 +75,11 @@ class Auth
     {
         // 商家登录信息
         $this->store = Session::get('yoshop_store');
+
+        var_dump($this->store['user']);
         // 当前用户信息
-        $this->user = User::detail($this->store['user']['store_user_id']);
+        $storeUserId = isset($this->store['user'])? intval($this->store['user']['store_user_id']) : 0;
+        $this->user = User::detail($storeUserId);
     }
 
     /**