|
@@ -35,7 +35,7 @@ class Login extends Manager
|
|
|
// 接收数据
|
|
// 接收数据
|
|
|
$password = $Request->input('password', '');
|
|
$password = $Request->input('password', '');
|
|
|
// 查询用户
|
|
// 查询用户
|
|
|
- $admin = $AdminUser->orWhere('username', $username)->orWhere('phone', $username)->first(['uid', 'username', 'phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
|
|
|
|
+ $admin = $AdminUser->orWhere('username', $username)->first(['uid', 'username', 'phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
// 用户不存在
|
|
// 用户不存在
|
|
|
if (!$admin || $admin['status']) return json_send(['code' => 'error', 'msg' => '密码错误或账号不存在']);
|
|
if (!$admin || $admin['status']) return json_send(['code' => 'error', 'msg' => '密码错误或账号不存在']);
|
|
|
// 用户不存在
|
|
// 用户不存在
|