feat: Implement thread-safe account and statistics management and integrate proxy support for all external requests.

This commit is contained in:
2026-02-13 03:32:27 +08:00
parent 1c58279292
commit ef23318090
12 changed files with 1041 additions and 84 deletions

View File

@@ -1,6 +1,6 @@
from curl_cffi import requests # 用于模拟指纹
from config import PRODUCT_ID
from config import PRODUCT_ID, get_proxy
from models import ClaudeAccount
from identity import random_address
@@ -42,7 +42,7 @@ class GiftChecker:
try:
print(f"[*] 正在尝试扣款 (Gift Purchase)...")
resp = requests.post(url, json=payload, headers=headers, impersonate="chrome124")
resp = requests.post(url, json=payload, headers=headers, impersonate="chrome124", proxies=get_proxy())
resp_json = {}
try: