async function abc(event) {
let a = await db.collection("apr1").get()
return a
}
云函数调用结果居然说权限不够...数据库还是设置成全开放的
Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 26b1baa6-014f-11ea-b16f-525400dee61a, cloud function service error code -504002, error message errCode: -1 unknown error | errMsg: collection.get:fail Error: missing authoration key, redeploy the function; at collection.get api; ; at cloud.callFunction api;
可以先尝试回退 wx-server-sdk 到 1.5.0https://www.npmjs.com/package/wx-server-sdk/v/1.5.0
问题已修复,升级下 wx-server-sdk 到最新版再试试
已修复,可以尝试更新wx-server-sdk到最新版本
重新部署下试试