🐛 修复TaskInfo状态判断

This commit is contained in:
HibiKier
2024-08-05 00:20:27 +08:00
parent 2926a46ae8
commit 1dbed2beec
3 changed files with 8 additions and 12 deletions
+5 -9
View File
@@ -615,22 +615,18 @@ async def broadcast_group(
)
) or key in _used_group:
continue
is_continue = False
is_run = False
if check_func:
if is_coroutine_callable(check_func):
is_continue = not await check_func(
group.group_id, group.channel_id
)
is_run = await check_func(group.group_id)
else:
is_continue = not check_func(
group.group_id, group.channel_id
)
if is_continue:
is_run = check_func(group.group_id)
if not is_run:
continue
target = PlatformUtils.get_target(
_bot,
None,
group.group_id,
group.channel_id or group.group_id,
# , group.channel_id
)
if target: