wesmiler 3 vuotta sitten
vanhempi
commit
d4346013df

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

@@ -147,6 +147,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'])

+ 1 - 0
source/application/store/model/store/User.php

@@ -24,6 +24,7 @@ class User extends StoreUserModel
     public function login($data)
     {
         // 验证用户名密码是否正确
+
         if (!$user = $this->getLoginUser($data['user_name'], $data['password'])) {
             $this->error = '登录失败, 用户名或密码错误';
             return false;