merge: integrate ZSY customer service and profile capabilities

This commit is contained in:
张胜宇
2026-09-11 22:31:51 +08:00
94 changed files with 7933 additions and 77 deletions
+6 -1
View File
@@ -7,6 +7,7 @@ from sqlalchemy import select, update
from sqlalchemy.ext.asyncio import AsyncSession
from app.core.contracts import DomainEvent, RequestContext
from app.core.conversation_privacy import sanitize_customer_service_message
from app.core.errors import (
FeedbackAlreadyExistsError,
GenericResourceNotFoundError,
@@ -129,7 +130,11 @@ class PublicPlatformService:
source_agent=row.agent_type or "customer_service",
source_message_id=messages[0].id if messages else None,
reason_code=payload["reason_code"],
reason_detail=payload.get("reason_detail"),
# 用户自填原因同样是客服会话链路的一部分,不能把凭据原样落工单。
reason_detail=(
sanitize_customer_service_message(payload["reason_detail"])
if payload.get("reason_detail") is not None else None
),
status="pending",
created_at=now,
updated_at=now,