获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- 教程的安全规则示例get表达式标点符号有误
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/security-rules.html 纠结了整整3个小时,才发现 不可以: "update": "doc.publisher == auth.openid || get('database.user.${auth.openid}').isManager", // 仅发布者或管理员可以更新 可以: "update": "doc.publisher == auth.openid || get(`database.user.${auth.openid}`).isManager", // 仅发布者或管理员可以更新 原因:` 和 ' 不是同一个标点符号!
2020-02-02 - 数据库自定义安全规则怎么配置?
"read":"doc._openid == auth.openid"// 私有读 "create":false// 可以创建新用户信息 "upeate":"doc._openid == auth.openid"// 仅能修改自己的信息 照着官方文档写,然而,... Error: InvalidParameter, rule invalid (db4e2a3b-67b2-4630-a4a5-7b329fbf2f1f)
2019-12-25