feat:修改客服报错问题

This commit is contained in:
李伊帆
2026-10-16 13:32:40 +08:00
parent 03839624ed
commit a4fa65de31
19 changed files with 291 additions and 89 deletions

View File

@@ -86,10 +86,10 @@ export function fetchCsSessionList(query: CsSessionListQuery = {}) {
/** GET /app/cs/session/{sessionId} — 查询会话详情 */
export function fetchCsSessionDetail(sessionId: string) {
return request<CsSessionVo>({
return request<CsAppActionVo | CsSessionVo | string | null>({
url: buildSessionPath(sessionId),
method: 'GET',
})
}).then((data) => normalizeSessionResponse(unwrapCsActionResponse(data).session))
}
/** GET /app/cs/session/{sessionId}/messages — 拉取会话消息 */
@@ -112,7 +112,7 @@ export function sendCsMessage(sessionId: string, data: CsSendMessageBody) {
/** POST /app/cs/session/{sessionId}/transfer — 转人工 */
export function transferCsSession(sessionId: string) {
return request<void>({
return request<CsAppActionVo | CsSessionVo | null>({
url: buildSessionPath(sessionId, '/transfer'),
method: 'POST',
})