feat: 正式采购下单前更新地址标记 (#173)

This commit is contained in:
chengma
2026-08-12 09:40:20 +08:00
parent e80e02186f
commit c719fd32ae
8 changed files with 472 additions and 8 deletions
+10
View File
@@ -166,6 +166,16 @@ class PurchaseTaskService:
state = adapter.read_state()
self._validate_checkout_values(state, target)
if execution_mode == "live":
assert isinstance(adapter, PddLivePurchaseAdapter)
step = "purchase_update_shipping_address"
self._enter_step(remote_task_id, started.attempt_id, step)
adapter.update_shipping_address(remote_task_id)
step = "purchase_verify_after_address"
self._enter_step(remote_task_id, started.attempt_id, step)
self._validate_checkout_values(adapter.read_state(), target)
step = "purchase_enter_confirmation"
self._enter_step(remote_task_id, started.attempt_id, step)
self._validate_checkout_values(adapter.read_state(), target)