db.collection('opendb-mall-goods').get().then(res => {
console.log(res.result)
})
{
"bsonType": "object",
"required": [
"goods_sn",
"name",
"remain_count",
"month_sell_count",
"total_sell_count",
"comment_count",
"is_real",
"is_on_sale",
"is_alone_sale",
"is_best",
"is_new",
"is_hot"
],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "存储文档 ID(商品 ID),系统自动生成"
},
"category_id": {
"bsonType": "string",
"description": "分类 id,参考`opendb-mall-categories`表",
"foreignKey": "opendb-mall-categories._id"
},
"goods_sn": {
"bsonType": "string",
"description": "商品的唯一货号",
"title": "货号",
"trim": "both"
},
"name": {
"bsonType": "string",
"description": "商品名称",
"title": "名称",
"trim": "both"
},
"keywords": {
"bsonType": "string",
"description": "商品关键字,为搜索引擎收录使用",
"title": "关键字",
"trim": "both"
},
"goods_desc": {
"bsonType": "string",
"description": "商品详细描述",
"title": "详细描述",
"trim": "both"
},
"goods_thumb": {
"bsonType": "file",
"description": "商品缩略图,用于在列表或搜索结果中预览显示",
"title": "缩略图地址"
},
"goods_banner_imgs": {
"bsonType": "array",
"arrayType": "file",
"description": "商品详情页的banner图地址"
},
"goods_detail_imgs": {
"bsonType": "array",
"arrayType": "file",
"description": "商品详情页详情页地址"
},
"remain_count": {
"bsonType": "int",
"description": "库存数量",
"title": "库存数量"
},
"month_sell_count": {
"bsonType": "int",
"description": "月销量"
},
"total_sell_count": {
"bsonType": "int",
"description": "总销量"
},
"is_on_sale": {
"bsonType": "bool",
"description": "是否上架销售",
"title": "是否上架"
},
"add_date": {
"bsonType": "timestamp",
"description": "上架时间",
"defaultValue": {
"$env": "now"
}
},
"last_modify_date": {
"bsonType": "timestamp",
"description": "最后修改时间",
"defaultValue": {
"$env": "now"
}
},
"seller_note": {
"bsonType": "string",
"description": "商家备注,仅商家可见",
"trim": "both",
"permission": {
"read": false
}
}
},
"version": "0.0.1"
}
![9***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/b25eb41a616cace1bf7fdcf5d5133334.png)
9***@qq.com
- 发布:2024-01-07 15:00
- 更新:2024-02-05 09:34
- 阅读:196
【报Bug】 read权限为true,但始终报权限校验未通过,未能获取当前用户信息,当前用户为匿名身份
分类:uniCloud
产品分类: uniCloud/App
操作步骤:
预期结果:
正常访问,无权限问题
正常访问,无权限问题
实际结果:
始终报权限校验未通过,未能获取当前用户信息,当前用户为匿名身份
始终报权限校验未通过,未能获取当前用户信息,当前用户为匿名身份
bug描述:
【报Bug】 read权限为true,但始终报权限校验未通过,未能获取当前用户信息,当前用户为匿名身份
2 个回复
BoredApe - 有问题就会有答案。
连接的云环境还是本地环境。代码中有没有访问其他库导致的报错
3***@qq.com
太难了,搞了一周,一个查询语句搞得像猜双色球号码一样,文档写的跟垃圾一样,放弃了