mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
修复群聊数据无法初始化
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user