患者12.12

This commit is contained in:
zoujiandong
2023-12-12 10:59:15 +08:00
parent fcd9d6ccad
commit 2eefc1929f
3 changed files with 10 additions and 9 deletions
@@ -175,6 +175,7 @@ Component({
});
} else {
// res.tempFilePath 存储录音文件的临时路径
this.sendCallback();
const message = wx.$TUIKit.createAudioMessage({
to: this.getToAccount(),
conversationType: this.data.conversation.type,
@@ -189,7 +190,7 @@ Component({
is_system:0
})
});
//this.sendCallback();
this.$sendTIMMessage(message);
}
}
@@ -388,7 +389,7 @@ Component({
sourceType: [type],
mediaType: [mediaType],
success: (res) => {
//this.sendCallback();
this.sendCallback();
const mediaInfoList = res.tempFiles;
mediaInfoList.forEach((mediaInfo) => {
fileList.push({ type: res.type, tempFiles: [{ tempFilePath: mediaInfo.tempFilePath }] });
@@ -742,7 +743,7 @@ Component({
const to =this.getToAccount();
const text = flag ? msg : this.data.message;
const { FEAT_NATIVE_CODE } = constant;
//this.sendCallback();
this.sendCallback();
const message = wx.$TUIKit.createTextMessage({
to,
conversationType: this.data.conversation.type,
@@ -752,7 +753,7 @@ Component({
cloudCustomData: JSON.stringify({
order_inquiry_id:this.data.order_inquiry_id,
inquiry_type:this.data.inquiry_type,
message_rounds:this.data.msgData.msg_round,
message_rounds:this.data.msgData.msg_round+1,
patient_family_data:this.data.patient_family_data,
is_system:0
}),
@@ -964,7 +965,7 @@ Component({
ext3: wx.$chat_SDKAppID,
});
}
this.sendCallback();
//this.sendCallback();
})
.catch((error) => {
logger.log(`| TUI-chat | message-input | sendMessageError: ${error.code} `);