|
|
@@ -91,13 +91,13 @@ class Login extends Manager
|
|
|
// 验证规则
|
|
|
$Request->scene('mobile')->validate();
|
|
|
// 接收数据
|
|
|
- $mobile = $Request->input('mobile', '');
|
|
|
+ $phone = $Request->input('phone', '');
|
|
|
// 接收数据
|
|
|
$password = $Request->input('password', '');
|
|
|
// 查询用户
|
|
|
- $admin = $AdminUser->where('phone', $mobile)->first(['uid', 'username', 'phone', 'status', 'password', 'insert_time', 'update_time']);
|
|
|
+ $admin = $AdminUser->where('phone', $phone)->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' => '密码错误或账号不存在1']);
|
|
|
// 用户不存在
|
|
|
if ($admin['status']) return json_send(['code' => 'error', 'msg' => '该账号已停用']);
|
|
|
// 转数组
|