refactor(fulfillment): 拆分履约服务并修正换绑冷却分类

This commit is contained in:
yml
2026-11-23 13:56:32 +08:00
parent 04e9b1d4c3
commit 05a7a56c4e
19 changed files with 4760 additions and 3951 deletions
@@ -155,9 +155,13 @@ def test_binding_qr_expiry_uses_customer_ttl():
def test_auto_order_sync_is_throttled(monkeypatch):
calls: list[int] = []
monkeypatch.setattr(service, "_AUTO_SYNC_LAST_ATTEMPT", float("-inf"))
monkeypatch.setattr(
service,
service.order_sync,
"_AUTO_SYNC_LAST_ATTEMPT",
float("-inf"),
)
monkeypatch.setattr(
service.order_sync,
"sync_pending_tasks",
lambda _db, *, limit: calls.append(limit) or {"fetched": 1},
)