// 云函数入口函数
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
db.collection("order").where({ _openid:wxContext.OPENID}).update({
data:{
event: event.MsgType,
}
});
await cloud.openapi.customerServiceMessage.send({
touser: wxContext.OPENID,
msgtype: 'text',
text: {
content: '收到',
},
})
return 'success'
}