云开发API接口:auth.getPluginOpenPId
config.json
{
"permissions": {
"openapi": [
"auth.getPluginOpenPId"
]
}
}
云开发示例(官方示例):
const cloud = require('wx-server-sdk')
cloud.init({
env: cloud.DYNAMIC_CURRENT_ENV,
})
exports.main = async (event, context) => {
try {
const result = await cloud.openapi.auth.getPluginOpenPId({
"code": event.code
})
return result
} catch (err) {
return err
}
}
最终结果:
{
errCode: -604100,
errMsg: "system error: error code: -604100"
}
不管怎么处理,都是这个结果,是还有哪个地方没有配置正确么?
同问!
楼主解决了吗?