feat:修改客服

This commit is contained in:
2026-07-27 15:14:36 +08:00
parent 7fa29cf312
commit bfc7816dca
2 changed files with 14 additions and 11 deletions
@@ -46,10 +46,11 @@ export function getCurrentMember() {
}
export function getMessages({ userId, conversationId, page = 1, pageSize = 80 }) {
const data = conversationId ? { userId, conversationId, page, pageSize } : { userId, page, pageSize }
return kefuRequest({
url: '/kefu/user/messages',
method: 'get',
data: { userId, conversationId, page, pageSize }
data: data
}).then(result => result.data || {})
}
+12 -10
View File
@@ -1,13 +1,3 @@
export const BASE_URL = "https://api.tbmall.xin"; //生产
export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
export const kefuBaseUrl = "https://admin.tbmall.xin/api";
// export const BASE_URL = baseUrl; // 本地测试
// export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
// export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
// H5 环境且开发模式下使用 '/proxy-api' 代理解决浏览器跨域(注意不能用 '/api',否则会与本地 /api 源码目录冲突)
let baseUrl = 'https://api.o.tbmall.xin';
// #ifdef H5
@@ -16,6 +6,18 @@ if (process.env.NODE_ENV === 'development') {
}
// #endif
// export const BASE_URL = "https://api.tbmall.xin"; //生产
// export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产
// export const kefuBaseUrl = "https://admin.tbmall.xin/api";
export const BASE_URL = baseUrl; // 本地测试
export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试
export const kefuBaseUrl = "https://admin.o.tbmall.xin/api";
// https://h.o.tbmall.xin/#/
// 客服接口属于管理后台服务,用户端接口已在后端单独放行。