fix: 下单后自动进入只读核单 (#119)

This commit is contained in:
chengma
2026-08-10 19:18:26 +08:00
parent 4c722558ad
commit b789b50a16
6 changed files with 69 additions and 4 deletions
+11
View File
@@ -112,6 +112,7 @@ ERROR_FEEDBACK_MIN_WIDTH = 520
ERROR_FEEDBACK_MIN_HEIGHT = 112
ERROR_FEEDBACK_BUTTON_MIN_WIDTH = 120
ERROR_FEEDBACK_BUTTON_MIN_HEIGHT = 40
PURCHASE_RECONCILE_DELAY_MS = 5_000
class ClaimTaskWorker(QObject):
@@ -1203,6 +1204,16 @@ class PDDTaskPageEvent(QObject):
)
elif kind == "result_pending":
self._on_claim_retryable_failed(message)
elif kind == "reconcile_pending":
self._retry_count = 0
seconds = PURCHASE_RECONCILE_DELAY_MS / 1000
self._continue_after(
PURCHASE_RECONCILE_DELAY_MS,
(
f"自动获取:运行中 · {message};"
f"{seconds:g} 秒后自动核对订单"
),
)
elif kind == "failed" and self._is_retry_wait_task(task_id):
content = (
f"自动获取:已停止 · 任务 {task_id} 重试已暂停;"
+1 -1
View File
@@ -272,7 +272,7 @@ class PurchaseTaskService:
remote_task_id,
)
return PurchaseTaskOutcome(
"manual_review",
"reconcile_pending",
f"任务 {remote_task_id} {message}",
remote_task_id,
)