瀏覽代碼

wes 萤火会员分销商城

APPLE 2 年之前
父節點
當前提交
35c7848710
共有 2 個文件被更改,包括 6 次插入1 次删除
  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);
     }
 
     /**