环境id: ilearning-demo-ai23i
代码:try {
const result = await cloud.openapi.wxacode.getUnlimited({
"scene": 'a=1'
})
return result
} catch (err) {
return err
}
日志返回:{ Error: errCode: -501007 invalid parameters | errMsg: wxacode.getUnlimited:fail missing wxCloudApiToken
at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:426:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
errCode: -501007,
errMsg: 'wxacode.getUnlimited:fail missing wxCloudApiToken' }
这就是微信自己挖的坑,生成unlimited的接口和用户态有什么关系?
有配置permission吗
{
“permissions”: {
“openapi”: [
“wxacode.getUnlimited”
]
}
}