fix: 对齐规格解析跨端超时预算 (#257)

This commit is contained in:
chengma
2026-08-18 08:56:56 +08:00
parent 29cf66ce96
commit 6345b00106
7 changed files with 97 additions and 4 deletions
+5 -1
View File
@@ -26,6 +26,7 @@ from .task_models import TaskType
DEFAULT_ADMIN_BASE_URL = "https://buy.833729.com"
PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS = 60.0
class HttpAdminGateway(AdminGateway):
@@ -288,7 +289,10 @@ class HttpAdminGateway(AdminGateway):
method="POST",
)
try:
with self._opener(request, timeout=self._timeout_seconds) as response:
with self._opener(
request,
timeout=PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS,
) as response:
status = getattr(response, "status", None) or response.getcode()
body = response.read()
except HTTPError as exc: