发布(0.4.5): 修复重选号台账同步并移除强制确认

This commit is contained in:
yml
2026-11-26 23:11:12 +08:00
parent e6c89d9f59
commit 9100991cb1
11 changed files with 118 additions and 418 deletions
@@ -14,7 +14,6 @@ from ..schemas import (
PlatformFulfillmentCollabSyncRequest,
PlatformFulfillmentCompleteRequest,
PlatformFulfillmentCustomerProfileUpdate,
PlatformFulfillmentManualBindingRequest,
PlatformFulfillmentMappingUpsert,
PlatformFulfillmentMappingWrite,
PlatformFulfillmentReasonRequest,
@@ -494,37 +493,6 @@ def operator_confirm_binding(
return result
@router.post("/tasks/{task_id}/bind/manual-confirm")
def manual_confirm_binding(
task_id: int,
req: PlatformFulfillmentManualBindingRequest,
db: Session = Depends(get_db),
current: User = Depends(require_permission("platform_fulfillment:use")),
) -> dict[str, Any]:
"""运营人工确认绑定:用于客户已在别处绑定、或账号当前角色已确认的场景。"""
service.ensure_customer_profile_for_binding(db, task_id=task_id)
result = service.manual_confirm_binding_sync(
db,
task_id=task_id,
current=current,
role_name=req.role_name,
note=req.note,
)
record_audit(
db,
current,
action="platform_fulfillment:binding:manual_confirm",
target=f"platform_fulfillment_task:{task_id}",
detail={
"roleName": req.role_name,
"note": req.note,
"bindingStatus": result.get("task", {}).get("bindingStatus"),
},
)
db.commit()
return result
@router.patch("/tasks/{task_id}/customer-profile")
def update_customer_profile(
task_id: int,