no message

This commit is contained in:
kuaifan
2024-11-23 13:30:03 +08:00
parent a813809fc6
commit e983677e57
9 changed files with 44 additions and 81 deletions

View File

@@ -130,7 +130,7 @@ class UsersController extends AbstractController
return $retError('帐号或密码错误');
}
//
if (in_array('disable', $user->identity)) {
if ($user->isDisable()) {
return $retError('帐号已停用...');
}
Cache::forget("code::" . $email);
@@ -928,7 +928,7 @@ class UsersController extends AbstractController
if ($transferUser->userid === $userInfo->userid) {
return Base::retError('不能移交给自己');
}
if (in_array('disable', $transferUser->identity)) {
if ($transferUser->isDisable()) {
return Base::retError('交接人已离职,请选择另一个交接人');
}
break;