fix: 修复部分问题
This commit is contained in:
parent
b326f57742
commit
e544d38952
|
|
@ -315,12 +315,14 @@
|
||||||
let TargetData = res.data.data;
|
let TargetData = res.data.data;
|
||||||
var QSindex = containsKeywordRegex(params.msg);
|
var QSindex = containsKeywordRegex(params.msg);
|
||||||
if (result.dataKey == 'ECGData') {
|
if (result.dataKey == 'ECGData') {
|
||||||
delete TargetData[0].data_msg.wavefrom;
|
TargetData.map(item => {
|
||||||
delete TargetData[0].data_msg.list;
|
delete item.data_msg.wavefrom;
|
||||||
|
delete item.data_msg.list;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)},(data_msg为值,hour_minute为检测时间) #限制:回复用户的内容中不要出现Null。#限制:回复不要带英文,要都转化成汉语。#限制:监测结果为Null的数据不做分析回复。`
|
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)}, #提示:data_msg为值,hour_minute为检测时间。#提示:“[]”表示数据为空,请在小程序上传数据。#限制:回复不要带英文,要都转化成汉语。#限制:回复内容控制在150字。#限制:忽略“压力指数、疲劳指数、心肌炎风险、冠心病风险和动脉硬化”等数据。`
|
||||||
|
console.log(Question, '=========================')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 调用接口 传递关键信息 文字转语音
|
* 调用接口 传递关键信息 文字转语音
|
||||||
|
|
@ -398,6 +400,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
@ -485,6 +488,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -315,12 +315,14 @@
|
||||||
let TargetData = res.data.data;
|
let TargetData = res.data.data;
|
||||||
var QSindex = containsKeywordRegex(params.msg);
|
var QSindex = containsKeywordRegex(params.msg);
|
||||||
if (result.dataKey == 'ECGData') {
|
if (result.dataKey == 'ECGData') {
|
||||||
delete TargetData[0].data_msg.wavefrom;
|
TargetData.map(item => {
|
||||||
delete TargetData[0].data_msg.list;
|
delete item.data_msg.wavefrom;
|
||||||
|
delete item.data_msg.list;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)},(data_msg为值,hour_minute为检测时间) #限制:回复用户的内容中不要出现Null。#限制:回复不要带英文,要都转化成汉语。#限制:监测结果为Null的数据不做分析回复。`
|
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)}, #提示:data_msg为值,hour_minute为检测时间。#提示:“[]”表示数据为空,请在小程序上传数据。#限制:回复不要带英文,要都转化成汉语。#限制:回复内容控制在150字。#限制:忽略“压力指数、疲劳指数、心肌炎风险、冠心病风险和动脉硬化”等数据。`
|
||||||
|
console.log(Question, '=========================')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 调用接口 传递关键信息 文字转语音
|
* 调用接口 传递关键信息 文字转语音
|
||||||
|
|
@ -398,6 +400,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
@ -485,6 +488,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -315,12 +315,14 @@
|
||||||
let TargetData = res.data.data;
|
let TargetData = res.data.data;
|
||||||
var QSindex = containsKeywordRegex(params.msg);
|
var QSindex = containsKeywordRegex(params.msg);
|
||||||
if (result.dataKey == 'ECGData') {
|
if (result.dataKey == 'ECGData') {
|
||||||
delete TargetData[0].data_msg.wavefrom;
|
TargetData.map(item => {
|
||||||
delete TargetData[0].data_msg.list;
|
delete item.data_msg.wavefrom;
|
||||||
|
delete item.data_msg.list;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)},(data_msg为值,hour_minute为检测时间) #限制:回复用户的内容中不要出现Null。#限制:回复不要带英文,要都转化成汉语。#限制:监测结果为Null的数据不做分析回复。`
|
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)}, #提示:data_msg为值,hour_minute为检测时间。#提示:“[]”表示数据为空,请在小程序上传数据。#限制:回复不要带英文,要都转化成汉语。#限制:回复内容控制在150字。#限制:忽略“压力指数、疲劳指数、心肌炎风险、冠心病风险和动脉硬化”等数据。`
|
||||||
|
console.log(Question, '=========================')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 调用接口 传递关键信息 文字转语音
|
* 调用接口 传递关键信息 文字转语音
|
||||||
|
|
@ -398,6 +400,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
@ -485,6 +488,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -315,12 +315,14 @@
|
||||||
let TargetData = res.data.data;
|
let TargetData = res.data.data;
|
||||||
var QSindex = containsKeywordRegex(params.msg);
|
var QSindex = containsKeywordRegex(params.msg);
|
||||||
if (result.dataKey == 'ECGData') {
|
if (result.dataKey == 'ECGData') {
|
||||||
delete TargetData[0].data_msg.wavefrom;
|
TargetData.map(item => {
|
||||||
delete TargetData[0].data_msg.list;
|
delete item.data_msg.wavefrom;
|
||||||
|
delete item.data_msg.list;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)},(data_msg为值,hour_minute为检测时间) #限制:回复用户的内容中不要出现Null。#限制:回复不要带英文,要都转化成汉语。#限制:监测结果为Null的数据不做分析回复。`
|
Question = `请模仿全科医生的口吻与我: ${user}对话,我最近测量的${result.dataKey}数据为${JSON.stringify(TargetData)},(data_msg为值,hour_minute为检测时间) #限制:回复用户的内容中不要出现“[]”。#限制:回复不要带英文,要都转化成汉语。#限制:回复内容控制在150字。#限制:忽略“压力指数、疲劳指数、心肌炎风险、冠心病风险和动脉硬化”等数据。`
|
||||||
|
console.log(Question, '=========================')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 调用接口 传递关键信息 文字转语音
|
* 调用接口 传递关键信息 文字转语音
|
||||||
|
|
@ -398,6 +400,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
@ -485,6 +488,7 @@
|
||||||
startRec.style.display = 'block';
|
startRec.style.display = 'block';
|
||||||
endRec.style.display = 'none';
|
endRec.style.display = 'none';
|
||||||
statusTxt.value = '';
|
statusTxt.value = '';
|
||||||
|
voiceTxt.innerText = '';
|
||||||
clearInterval(countdown);
|
clearInterval(countdown);
|
||||||
replayVideoSegment(0, 60);
|
replayVideoSegment(0, 60);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue