mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-12 15:30:04 +08:00
⚡️ 修复私聊ban后群组中回复不正确
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user