Commit 58165c6bfd2b82909e5dfa09c6710ebe872735d6

Authored by vking
1 parent 6ad65740

chatbot & qiang

Showing 1 changed file with 3 additions and 1 deletions
... ... @@ -21,8 +21,9 @@ Page({
chat.send('人工服务')
setTimeout(()=>{
let msg=this.getMsg()
console.log('chat.msg',msg)
if(msg){
chat.send()
chat.send(msg)
}
},300)
},
... ... @@ -57,6 +58,7 @@ Page({
getMsg(){
switch (this.options.act){
//act: "reserve", seller: "陕西风味面馆", date: "2020-10-22", section: "night", room: "6人间"
//act=reserve&seller=陕西风味面馆&date=2020-10-23&section=noon&room=6人间
case 'reserve'://预订的时候
let dur={'morning':'早餐','noon':'午餐','night':'晚餐','midnight':'夜宵'}
return `预订:${this.options.seller}/${this.options.date} ${dur[this.options.section]}/${this.options.room}`
... ...