await cloud.openapi.customerServiceMessage.send({
MsgType: 'transfer_customer_service',
ToUserName: wxContext.OPENID,
FromUserName: '业主我当家管家',
CreateTime: parseInt(+new Date / 1000),
})
报错日志:
ERROR RequestId:3a394729-5e50-11ec-8ae5-525400635a54 Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"Error: errCode: 40003 | errMsg: openapi.customerServiceMessage.send:fail invalid openid rid: 61bb02e2-3a5f3baa-426c0885\n at callWXOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:2392:31)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
以前都是正常的,最近突然不行了,不知什么原因
await cloud.openapi.customerServiceMessage.send({
touser: wxContext.OPENID,
msgtype: 'text',
text: {
content: '正在转客服MM...急事加微信:13883166466'
}
})
await cloud.openapi.customerServiceMessage.send({
MsgType: 'transfer_customer_service',
ToUserName: wxContext.OPENID,
FromUserName: '业主我当家管家',
CreateTime: parseInt(+new Date / 1000),
})
第一个调用都正常,第二个转客服就不能工作,返回上述问题
都没按文档写,以前它是怎么正常的,很好奇。转发消息是不调接口的,直接return出去的