exports.main = async (eve, context) => {
return await cloud.database().collection('order').doc(eve.outTradeNo).update({
data:{
status: 1
}
}).then(res=>{
DB.collection('guestorder').add({
data:{
guestkefu:"",
guestname:"下单前获取",
guestdanjia:abc.ooyajin,
guestyajin:abc.ooyajin,
guestqzri:abc.starttime,
guestdqrq:abc.deadtime,
guestphonenum:"111从客户数据获取",
guestcanghao:abc.oocanghao,
guestcode:abcd.ministorage[odi2][oid1][1]
}
}).then(res=>{
return res
}).catch(res=>{return res})
}
).catch(res=>{ return res})
}