This commit is contained in:
2026-01-24 07:09:54 +08:00
parent fb3ebae995
commit c6ab6b3123
2 changed files with 148 additions and 4 deletions

View File

@@ -2802,6 +2802,14 @@ class ProvisionerBot:
# 开始注册任务
self.current_team = f"GPT Team 注册 ({count}个)"
# 重置停止标志,确保新任务可以正常运行
try:
import run
run._shutdown_requested = False
except Exception:
pass
self.current_task = asyncio.create_task(
self._run_team_registration(query.message.chat_id, count, output_type)
)
@@ -2908,7 +2916,11 @@ class ProvisionerBot:
run_with_callback
)
if result.get("success"):
if result.get("stopped"):
# 被 /stop 命令中断,不计入失败
log.info("注册被用户停止")
break
elif result.get("success"):
success_count += 1
results.append({
"account": result["account"],