feat:修改客服报错问题
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user