fix(fulfillment): 支持重开未过期支付二维码并展示具体待人工原因

This commit is contained in:
yml
2026-11-28 14:11:21 +08:00
parent 20314a2f1d
commit 2013a9bdeb
9 changed files with 302 additions and 64 deletions
+21
View File
@@ -6908,3 +6908,24 @@ class TestAllocationPolicyAndSameRoleReuse(_Base):
assert result["orphan_released"] == 1
assert orphan_lease.status == "released"
assert shared_lease.status == "active"
def test_manual_reason_preserves_specific_issue_codes(self):
task = self._create_commodity_task(
commodity_id=COMMODITY,
order_suffix="reason-1",
required_points=1280,
)
task.execution_status = "manual_required"
task.binding_status = "failed"
for issue in (
"customer_role_cooldown",
"account_role_cooldown",
"customer_role_bound_elsewhere",
"account_role_bound_elsewhere",
"role_changed",
"lease_expired",
):
task.issue_code = issue
self.session.commit()
detail = service.get_task_detail(self.session, task.id)
assert detail["task"]["manualReason"] == issue