u
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user