⚡️ 修复私聊ban后群组中回复不正确

This commit is contained in:
HibiKier
2024-08-06 21:08:31 +08:00
parent 278a5319a4
commit 50d8059e9f
3 changed files with 8 additions and 4 deletions
+2
View File
@@ -93,6 +93,8 @@ class BanConsole(Model):
"""
logger.debug(f"获取用户ban时长", target=f"{group_id}:{user_id}")
user = await cls._get_data(user_id, group_id)
if not user and user_id:
user = await cls._get_data(user_id, None)
if user:
if user.duration == -1:
return -1