no message

This commit is contained in:
kuaifan
2024-11-25 03:29:11 +08:00
parent a813809fc6
commit e983677e57
9 changed files with 44 additions and 81 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ class User extends AbstractModel
throw new ApiException('请登录后继续...', [], -1);
}
}
if (in_array('disable', $user->identity)) {
if ($user->isDisable()) {
throw new ApiException('帐号已停用...', [], -1);
}
if ($identity) {