|
@@ -87,7 +87,6 @@ class LoginService extends Service
|
|
|
$employee = $employee->toArray();
|
|
$employee = $employee->toArray();
|
|
|
|
|
|
|
|
if(! Hash::check($password, $employee['password'])) return [false,'密码错误'];
|
|
if(! Hash::check($password, $employee['password'])) return [false,'密码错误'];
|
|
|
- if($employee['is_admin'] != Employee::IS_ADMIN_ZERO) return [false, '账号限制登录'];
|
|
|
|
|
|
|
|
|
|
list($status, $msg) = (new ItemService())->shareCheck($data['share_token'], $employee['id']);
|
|
list($status, $msg) = (new ItemService())->shareCheck($data['share_token'], $employee['id']);
|
|
|
if(! $status) return [false, $msg];
|
|
if(! $status) return [false, $msg];
|