fix: 修复患者就诊历史
This commit is contained in:
@@ -207,12 +207,13 @@
|
||||
// 2. 获取患者ID
|
||||
const patientId = that.currentUserId.replace('user-', '');
|
||||
|
||||
// 3. 创建或获取聊天房间
|
||||
// 3. 创建或获取聊天房间 (type=3 表示在线复诊/购药)
|
||||
const roomRes = await request('/xkApi/online-consultation/get-or-create-chat-room', {
|
||||
method: 'POST',
|
||||
data: {
|
||||
doctor_id: doctorId,
|
||||
patient_id: patientId
|
||||
patient_id: patientId,
|
||||
type: 3
|
||||
}
|
||||
}, 1);
|
||||
|
||||
@@ -298,8 +299,10 @@
|
||||
console.log(checkDev('open-im') && that.registList.register_type === 1, 'sssssssssssss')
|
||||
|
||||
if (checkDev('open-im') && (that.registList.register_type === 1 || that.registList.register_type === 2)) {
|
||||
// 传递type参数,根据挂号类型创建对应类型的房间
|
||||
createRoomByDoctorIdApi({
|
||||
doctor_id: that.currentDoctorId
|
||||
doctor_id: that.currentDoctorId,
|
||||
type: that.registList.register_type // 1=在线咨询,2=复诊
|
||||
}).then(result => {
|
||||
sendToUserApi({
|
||||
room_id: result.data.result.room_id,
|
||||
|
||||
Reference in New Issue
Block a user