try {
var result = await cloud.openapi.subscribeMessage.send({
touser: openids[i]._openid,
page: 'pages/checkin/checkin',
lang: 'zh_CN',
data: {
"thing1": {
"value": "上报体温"
},
"time2": {
"value": date.format("yyyy-MM-dd 20:30")
}
},
// templateId: 'bzVdoPY3-KljJBAGe_vGlOz7PRUsGqlZITm85uKyUWk'
templateId: 'hJbZLeEfuimHxDO6tOCXuEm7UXUzL33Hgnl_gwDsvIc'
// miniprogram_state: 'developer'
})
console.log(result)
} catch (err) {
console.log(err)
}
从另一个个小程序迁移到当前小程序,代码一模一样,只改了订阅消息模板ID,为什么会报错?
参数无效,自检代码