Explorar el Código

Wesmiler 三勾多商户商城提交

wesmiler hace 4 años
padre
commit
8a1cc46cb0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/shop/model/shop/User.php

+ 2 - 1
app/shop/model/shop/User.php

@@ -17,10 +17,11 @@ class User extends UserModel
         $where['user_name'] = $user['username'];
         $where['password'] = $user['password'];
         $where['is_delete'] = 0;
-var_dump($user);
+
         if (!$user = $this->where($where)->with(['app'])->find()) {
             return false;
         }
+        var_dump($user);
         if (empty($user['app'])) {
             $this->error = '登录失败, 未找到应用信息';
             return false;