|
|
|
@ -354,6 +354,9 @@ class LoginService extends BaseApiService |
|
|
|
{ |
|
|
|
//查询员工信息 |
|
|
|
$member_info = (new Personnel())->where('phone', $params['phone'])->find(); |
|
|
|
if(!$member_info){ |
|
|
|
throw new ApiException('账号不存在'); |
|
|
|
} |
|
|
|
|
|
|
|
if ($member_info->status != 2) throw new ApiException('账号状态异常禁止登录'); |
|
|
|
$user = (new SysUser())->where('username', $params['phone'])->find(); |
|
|
|
|