From f9b78640b5a1ca90d27e185127803fa024f38b07 Mon Sep 17 00:00:00 2001 From: kyx236 Date: Fri, 13 Feb 2026 04:27:33 +0800 Subject: [PATCH] feat: Implement a thread-safe account store with pool management, CRUD operations, and statistics tracking. --- core/account_store.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/account_store.py b/core/account_store.py index 6d0072a..cc9a1a1 100644 --- a/core/account_store.py +++ b/core/account_store.py @@ -8,8 +8,9 @@ import json import threading from pathlib import Path -_ACCOUNTS_FILE = Path(__file__).parent / "accounts.txt" -_STATS_FILE = Path(__file__).parent / "stats.json" +_PROJECT_ROOT = Path(__file__).parent.parent +_ACCOUNTS_FILE = _PROJECT_ROOT / "accounts.txt" +_STATS_FILE = _PROJECT_ROOT / "stats.json" _lock = threading.Lock() # ====== 账号池(并发调度)======