fix: 修复了一些东西,新增了方法

This commit is contained in:
2025-08-29 16:59:14 +08:00
parent 930cd461a6
commit 32d3669a50
15 changed files with 1706 additions and 1460 deletions

View File

@@ -26,6 +26,15 @@ export async function getMessagesByRoomIdApi(params) {
return await post('/chat-friends/messages-by-room-id', params, 3)
}
/**
* 创建房间 - 根据医生id
* @param params
* @returns {Promise<*>}
*/
export async function createRoomByDoctorIdApi(params) {
return await post('/chat-friends/create-room-by-doctor-id', params, 3)
}
/**
* 获取聊天好友列表
* @param params
@@ -34,6 +43,14 @@ export async function getMessagesByRoomIdApi(params) {
export async function getChatFriendsListApi(params) {
return await get('/chat-friends/list', params, 3)
}
/**
* 获取聊天注册信息
* @param params
* @returns {Promise<*>}
*/
export async function getChatRegisterInfoApi(params) {
return await get('/chat-friends/chat-register-info', params, 3)
}
/**
* 上传聊天文件

View File

@@ -18,18 +18,20 @@ const sensitiveData = [
'idcard'
]
const isDev = true;
function request(url, params, method = 0) {
// let baseURL = "https://app.xiaokang88.com/member"
let baseURL = "http://127.0.0.1:18000/member"
let baseURL = isDev === true? 'http://127.0.0.1:18000/member': "https://app.xiaokang88.com/member"
// let baseURL = "http://127.0.0.1:18000/member"
if (url.split('/').indexOf('imApi') !== -1) {
baseURL = "http://127.0.0.1:12080/api"
}
if (url.split('/').indexOf('newApi') !== -1) {
baseURL = "https://shop.xiaokang88.com/member"
baseURL = isDev === true? 'https://shop.xiaokang88.com/member': "https://shop.xiaokang88.com/member"
}
if (url.split('/').indexOf('xkApi') !== -1) {
// baseURL = "https://api.xiaokang88.com/member"
baseURL = "http://127.0.0.1:18001/api/mobile"
baseURL = isDev === true? 'http://127.0.0.1:18001/api/mobile': "https://api.xiaokang88.com/api/mobile"
// baseURL = "http://127.0.0.1:18001/api/mobile"
}
url = url.replace('/oldApi', '');
url = url.replace('/newApi', '');