- 云开发数据库读取出来相同 id 的数组/ Set 如何合并?
[ { "_id": "1", "checklists": [ [1, 3, 5] ] }, { "_id": "2", "checklists": [ [2, 4, 6] ] }, { "_id": "1", "checklists": [ [7, 9] ] }, ] 预期按 id 合并后数据如下: [ { "_id": "1", "checklists": [ [1, 3, 5, 7, 9] ] }, { "_id": "2", "checklists": [ [2, 4, 6] ] } ] 备注:不关心数组内顺序,相当于 Set,合并去除重复元素,顺序不重要。
2023-03-01 - 云开发未登录数据权限自定义规则导致无法写入数据?
首先已经在全局设置中打开未登录用户访问云资源的权限,存储和云函数也均设置自定义规则允许未登录用户访问。 场景:小程序分享页面到朋友圈 问题:开启自定义规则后,小程序页面在朋友圈被他人打开后可以查看页面内容,但是创建此条数据的作者在正式打开小程序且获取到 open_id 的情况下依然无法修改数据,提示如下错误。但是如果使用默认的所有用户可读,仅创建者可写权限,则朋友圈分享的页面其他人无权限查看内容。 checklist-create-or-edit.js? [sm]:154 Error: errCode: -502003 database permission denied | errMsg: Permission denied at new t (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:17) at Function.success (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:17) at f (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:2) at Object.success (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:2) at r (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:26) at WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:26 at b (WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:26) at WASubContext.js?t=wechat&s=1662181595593&v=2.14.1:26 at WAServiceMainContext.js:11 at VM9 asdebug.js:10(env: macOS,mp,1.06.2208311; lib: 2.14.1) [图片] [图片]
2022-09-03 - 文档能否提供实例?
https://developers.weixin.qq.com/miniprogram/dev/extended/component-plus/recycle-view.html recycle-view 具体如何使用,文档能否详尽点?{{batchSetRecycleData}} 莫名其妙,context 也是没有完整代码,就这样的文档给开发者猜吗?
2021-01-20