|
@@ -21,7 +21,7 @@ class User extends UserModel
|
|
|
if (!$user = $this->where($where)->with(['app'])->find()) {
|
|
if (!$user = $this->where($where)->with(['app'])->find()) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- var_dump($user);
|
|
|
|
|
|
|
+
|
|
|
if (empty($user['app'])) {
|
|
if (empty($user['app'])) {
|
|
|
$this->error = '登录失败, 未找到应用信息';
|
|
$this->error = '登录失败, 未找到应用信息';
|
|
|
return false;
|
|
return false;
|