mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-30 09:10:01 +08:00
补充群认证同样问题
This commit is contained in:
@@ -166,7 +166,8 @@ async def _(bot: Bot):
|
||||
for group_id in _gl:
|
||||
if group_id in group_list:
|
||||
if group := await GroupInfo.get_or_none(group_id=group_id):
|
||||
await group.update_or_create(group_flag=1)
|
||||
group.group_flag = 1
|
||||
await group.save(update_fields=["group_flag"])
|
||||
else:
|
||||
group_info = await bot.get_group_info(group_id=group_id)
|
||||
await GroupInfo.create(
|
||||
|
||||
Reference in New Issue
Block a user