uni-id-pages 1.0.24中uni-id-users.schema.json的相关权限设置变更,导致若用云对象查询uni-id-users表的mobile等字段时,报错TOKEN_INVALID_ANONYMOUS_USER。
目前系统自带uni-id-users.schema.json的部分代码为:
"permission": {
"read": true,
"create": "'CREATE_UNI_ID_USERS' in auth.permission",
"update": "doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission",
"delete": "'DELETE_UNI_ID_USERS' in auth.permission"
},
"properties": {
"mobile": {
"bsonType": "string",
"description": "手机号码",
"pattern": "^\+?[0-9-]{3,20}$",
"title": "手机号码",
"trim": "both",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
...
}
而以前的uni-id-pages 1.0.14中运行正常,其uni-id-users.schema.json的相关权限设置为:
"permission": {
"update": "doc._id == auth.uid",
"read": "doc._id == auth.uid"
},
"properties": {
"mobile": {
"bsonType": "string",
"description": "手机号码",
"pattern": "^\+?[0-9-]{3,20}$",
"title": "手机号码",
"trim": "both",
"permission": {
"write": false
}
},
...
}
1***@qq.com
请问云对象怎么传clientInfo
2023-11-23 15:12