fix: 修复了一些东西,新增了方法
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传聊天文件
|
||||
|
||||
@@ -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', '');
|
||||
|
||||
Reference in New Issue
Block a user