修复群聊数据无法初始化

This commit is contained in:
HibiKier
2023-05-23 23:05:27 +08:00
parent ac98ec8351
commit 7d86ff057c
11 changed files with 61 additions and 72 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ async def _():
gl = [g["group_id"] for g in gl]
msg_list, code = await get_epic_free(bot, "Group")
for g in gl:
if group_manager.check_task_status("epic_free_game", g):
if group_manager.check_task_status("epic_free_game", str(g)):
try:
if msg_list and code == 200:
await bot.send_group_forward_msg(group_id=g, messages=msg_list)
+1 -3
View File
@@ -41,7 +41,7 @@ class UpdateConfig(BaseModel):
class UpdateGroup(BaseModel):
group_id: int
group_id: str
"""群号"""
status: bool
"""状态"""
@@ -57,5 +57,3 @@ class HandleRequest(BaseModel):
id: int
handle: str
type: str