|
...
|
...
|
@@ -1045,8 +1045,9 @@ Page({ |
|
|
|
"{客人姓名}": data.detail.rname ? (data.detail.rname + str) : str == '贵宾' ? '贵宾' : '',
|
|
|
|
"{预订日期}": data.seller.yearMonthDay,
|
|
|
|
"{桌位}": resultString,
|
|
|
|
"{客人姓氏}": data.detail.rname ? data.detail.rname : '',
|
|
|
|
};
|
|
|
|
let newStr = voice_info.replace(/{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名}/g, function (matched) {
|
|
|
|
let newStr = voice_info.replace(/{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名}|{客人姓氏}/g, function (matched) {
|
|
|
|
return replacements[matched];
|
|
|
|
});
|
|
|
|
console.log('文字转语音newStr', newStr);
|
...
|
...
|
|