修复(履约绑定): 修复候选快照丢失与全链路绑定校验一致性
This commit is contained in:
@@ -11,7 +11,6 @@ from fastapi import HTTPException
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from ...models import (
|
||||
DouyuTask,
|
||||
PlatformCommodityMapping,
|
||||
PlatformFulfillmentTask,
|
||||
)
|
||||
@@ -112,15 +111,9 @@ def _apply_customer_profile(
|
||||
)
|
||||
)
|
||||
if db is not None and task.bind_task_id and task.customer_role_name:
|
||||
bind_task = db.get(DouyuTask, int(task.bind_task_id))
|
||||
if bind_task is not None and bind_task.task_type in {
|
||||
"get_bind_qr",
|
||||
"confirm_bind",
|
||||
}:
|
||||
result = dict(bind_task.result or {})
|
||||
result["expected_role_name"] = task.customer_role_name
|
||||
result["expected_role_required"] = True
|
||||
bind_task.result = result
|
||||
from .binding import sync_customer_role_to_bind_task
|
||||
|
||||
sync_customer_role_to_bind_task(db, task)
|
||||
|
||||
|
||||
def _upsert_order_snapshot(
|
||||
|
||||
Reference in New Issue
Block a user