提交 eaaecec4 编写于 作者: DCloud_JSON's avatar DCloud_JSON

1.0.15 - 更新表结构,解决在uni-admin中部分clientDB操作没有权限的问题

上级 8fd283e5
## 1.0.15(2022-09-19)
- 更新表结构,解决在uni-admin中部分clientDB操作没有权限的问题
## 1.0.14(2022-09-16)
- 修改 配置项`isAdmin`默认值为`false`
## 1.0.13(2022-09-16) ## 1.0.13(2022-09-16)
- 新增 支持通过`isAdmin`配置项区分是否为管理端或者用户端
- 新增 管理员注册页面 - 新增 管理员注册页面
- 新增 配置项`isAdmin`区分是否为管理端
- 新增 登录成功后自动跳转;跳转优先级:路由携带(`uniIdRedirectUrl`参数) > 返回上一路由 > 跳转首页 - 新增 登录成功后自动跳转;跳转优先级:路由携带(`uniIdRedirectUrl`参数) > 返回上一路由 > 跳转首页
- 优化 管理端下部分页面展示 - uni-id-co 优化 注册管理员时管理员存在提示文案
- 优化 注册管理员时管理员存在提示文案
## 1.0.12(2022-09-07) ## 1.0.12(2022-09-07)
- 修复 getSupportedLoginType判断是否支持微信公众号、PC网页微信扫码登录方式报错的Bug - 修复 getSupportedLoginType判断是否支持微信公众号、PC网页微信扫码登录方式报错的Bug
- 优化 适配pc端样式 - 优化 适配pc端样式
......
...@@ -8,6 +8,8 @@ export default { ...@@ -8,6 +8,8 @@ export default {
uni.redirectTo({ uni.redirectTo({
url: config.isAdmin ? '/uni_modules/uni-id-pages/pages/login/login-withpwd': '/uni_modules/uni-id-pages/pages/login/login-withoutpwd', url: config.isAdmin ? '/uni_modules/uni-id-pages/pages/login/login-withpwd': '/uni_modules/uni-id-pages/pages/login/login-withoutpwd',
}); });
// uniIdRouter -> loginPage
uni.$emit('uni-id-pages-logout') uni.$emit('uni-id-pages-logout')
}, },
} }
...@@ -5,7 +5,7 @@ export default { ...@@ -5,7 +5,7 @@ export default {
登录类型 未列举到的或运行环境不支持的,将被自动隐藏。 登录类型 未列举到的或运行环境不支持的,将被自动隐藏。
如果需要在不同平台有不同的配置,直接用条件编译即可 如果需要在不同平台有不同的配置,直接用条件编译即可
*/ */
"isAdmin": true, // 区分管理端与用户端 "isAdmin": false, // 区分管理端与用户端
"loginTypes": [ "loginTypes": [
// "qq", // "qq",
// "xiaomi", // "xiaomi",
......
{ {
"id": "uni-id-pages", "id": "uni-id-pages",
"displayName": "uni-id-pages", "displayName": "uni-id-pages",
"version": "1.0.13", "version": "1.0.15",
"description": "云端一体简单、统一、可扩展的用户中心页面模版", "description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户管理", "用户管理",
......
...@@ -132,7 +132,10 @@ export default { ...@@ -132,7 +132,10 @@ export default {
/* 前往注册 */ /* 前往注册 */
toRegister() { toRegister() {
uni.navigateTo({ uni.navigateTo({
url: this.config.isAdmin ? '/uni_modules/uni-id-pages/pages/register/register-admin': '/uni_modules/uni-id-pages/pages/register/register' url: this.config.isAdmin ? '/uni_modules/uni-id-pages/pages/register/register-admin': '/uni_modules/uni-id-pages/pages/register/register',
fail(e) {
console.error(e);
}
}) })
} }
} }
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
this.$refs['bind-mobile'].open() this.$refs['bind-mobile-by-sms'].open()
// #endif // #endif
// #ifdef H5 // #ifdef H5
......
...@@ -74,14 +74,20 @@ ...@@ -74,14 +74,20 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }
,{ ,{
"path" : "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd", "path" : "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",
"style" : "style" :
{ {
"navigationBarTitleText": "修改密码", "navigationBarTitleText": "修改密码",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} },{
"path": "uni_modules/uni-id-pages/pages/register/register-admin",
"style": {
"navigationBarTitleText": "注册管理员账号",
"enablePullDownRefresh": false
}
}
] ]
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ module.exports = async function (params = {}) { ...@@ -39,7 +39,7 @@ module.exports = async function (params = {}) {
if (getAdminRes.data.length > 0) { if (getAdminRes.data.length > 0) {
return { return {
errCode: ERROR.ADMIN_EXISTS, errCode: ERROR.ADMIN_EXISTS,
errMsg: '管理员已存在' errMsg: this.t('uni-id-admin-exists')
} }
} }
const { const {
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.0.12", "version": "1.0.15",
"lockfileVersion": 1, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": {
"": {
"name": "uni-id-co",
"version": "1.0.12",
"dependencies": {
"jsonwebtoken": "8.5.1",
"lodash.merge": "^4.6.2",
"uni-captcha": "file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
"uni-config-center": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
"uni-id-common": "file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common",
"uni-open-bridge-common": "file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
}
},
"../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha": {
"version": "0.2.2",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
},
"../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center": {
"version": "0.0.2",
"license": "Apache-2.0"
},
"../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common": {
"version": "1.0.13",
"license": "Apache-2.0",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
},
"../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common": {
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
},
"node_modules/buffer-equal-constant-time": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
},
"node_modules/ecdsa-sig-formatter": {
"version": "1.0.11",
"resolved": "https://registry.npmmirror.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"dependencies": {
"safe-buffer": "^5.0.1"
}
},
"node_modules/jsonwebtoken": {
"version": "8.5.1",
"resolved": "https://registry.npmmirror.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
"integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
"dependencies": {
"jws": "^3.2.2",
"lodash.includes": "^4.3.0",
"lodash.isboolean": "^3.0.3",
"lodash.isinteger": "^4.0.4",
"lodash.isnumber": "^3.0.3",
"lodash.isplainobject": "^4.0.6",
"lodash.isstring": "^4.0.1",
"lodash.once": "^4.0.0",
"ms": "^2.1.1",
"semver": "^5.6.0"
},
"engines": {
"node": ">=4",
"npm": ">=1.4.28"
}
},
"node_modules/jwa": {
"version": "1.4.1",
"resolved": "https://registry.npmmirror.com/jwa/-/jwa-1.4.1.tgz",
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
"dependencies": {
"buffer-equal-constant-time": "1.0.1",
"ecdsa-sig-formatter": "1.0.11",
"safe-buffer": "^5.0.1"
}
},
"node_modules/jws": {
"version": "3.2.2",
"resolved": "https://registry.npmmirror.com/jws/-/jws-3.2.2.tgz",
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
"dependencies": {
"jwa": "^1.4.1",
"safe-buffer": "^5.0.1"
}
},
"node_modules/lodash.includes": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz",
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
},
"node_modules/lodash.isboolean": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
},
"node_modules/lodash.isinteger": {
"version": "4.0.4",
"resolved": "https://registry.npmmirror.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
},
"node_modules/lodash.isnumber": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
},
"node_modules/lodash.isplainobject": {
"version": "4.0.6",
"resolved": "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
},
"node_modules/lodash.isstring": {
"version": "4.0.1",
"resolved": "https://registry.npmmirror.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
},
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
},
"node_modules/lodash.once": {
"version": "4.1.1",
"resolved": "https://registry.npmmirror.com/lodash.once/-/lodash.once-4.1.1.tgz",
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
},
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
},
"node_modules/semver": {
"version": "5.7.1",
"resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
"bin": {
"semver": "bin/semver"
}
},
"node_modules/uni-captcha": {
"resolved": "../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
"link": true
},
"node_modules/uni-config-center": {
"resolved": "../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
"link": true
},
"node_modules/uni-id-common": {
"resolved": "../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common",
"link": true
},
"node_modules/uni-open-bridge-common": {
"resolved": "../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common",
"link": true
}
},
"dependencies": { "dependencies": {
"buffer-equal-constant-time": { "buffer-equal-constant-time": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", "resolved": "https://registry.npmmirror.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="
}, },
"ecdsa-sig-formatter": { "ecdsa-sig-formatter": {
"version": "1.0.11", "version": "1.0.11",
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "resolved": "https://registry.npmmirror.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
"requires": { "requires": {
"safe-buffer": "^5.0.1" "safe-buffer": "^5.0.1"
...@@ -19,7 +185,7 @@ ...@@ -19,7 +185,7 @@
}, },
"jsonwebtoken": { "jsonwebtoken": {
"version": "8.5.1", "version": "8.5.1",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", "resolved": "https://registry.npmmirror.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
"integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
"requires": { "requires": {
"jws": "^3.2.2", "jws": "^3.2.2",
...@@ -36,7 +202,7 @@ ...@@ -36,7 +202,7 @@
}, },
"jwa": { "jwa": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", "resolved": "https://registry.npmmirror.com/jwa/-/jwa-1.4.1.tgz",
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
"requires": { "requires": {
"buffer-equal-constant-time": "1.0.1", "buffer-equal-constant-time": "1.0.1",
...@@ -46,7 +212,7 @@ ...@@ -46,7 +212,7 @@
}, },
"jws": { "jws": {
"version": "3.2.2", "version": "3.2.2",
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", "resolved": "https://registry.npmmirror.com/jws/-/jws-3.2.2.tgz",
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
"requires": { "requires": {
"jwa": "^1.4.1", "jwa": "^1.4.1",
...@@ -55,68 +221,63 @@ ...@@ -55,68 +221,63 @@
}, },
"lodash.includes": { "lodash.includes": {
"version": "4.3.0", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", "resolved": "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz",
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
}, },
"lodash.isboolean": { "lodash.isboolean": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", "resolved": "https://registry.npmmirror.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="
}, },
"lodash.isinteger": { "lodash.isinteger": {
"version": "4.0.4", "version": "4.0.4",
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", "resolved": "https://registry.npmmirror.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="
}, },
"lodash.isnumber": { "lodash.isnumber": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", "resolved": "https://registry.npmmirror.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="
}, },
"lodash.isplainobject": { "lodash.isplainobject": {
"version": "4.0.6", "version": "4.0.6",
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", "resolved": "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="
}, },
"lodash.isstring": { "lodash.isstring": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", "resolved": "https://registry.npmmirror.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="
}, },
"lodash.merge": { "lodash.merge": {
"version": "4.6.2", "version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
}, },
"lodash.once": { "lodash.once": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", "resolved": "https://registry.npmmirror.com/lodash.once/-/lodash.once-4.1.1.tgz",
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="
}, },
"ms": { "ms": {
"version": "2.1.3", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
}, },
"safe-buffer": { "safe-buffer": {
"version": "5.2.1", "version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
}, },
"semver": { "semver": {
"version": "5.7.1", "version": "5.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
}, },
"uni-captcha": { "uni-captcha": {
"version": "file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha", "version": "file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
"requires": { "requires": {
"uni-config-center": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center" "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
},
"dependencies": {
"uni-config-center": {
"version": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
} }
}, },
"uni-config-center": { "uni-config-center": {
...@@ -125,23 +286,13 @@ ...@@ -125,23 +286,13 @@
"uni-id-common": { "uni-id-common": {
"version": "file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common", "version": "file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common",
"requires": { "requires": {
"uni-config-center": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center" "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
},
"dependencies": {
"uni-config-center": {
"version": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
} }
}, },
"uni-open-bridge-common": { "uni-open-bridge-common": {
"version": "file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common", "version": "file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common",
"requires": { "requires": {
"uni-config-center": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center" "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
},
"dependencies": {
"uni-config-center": {
"version": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
}
} }
} }
} }
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.0.12", "version": "1.0.15",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
}, },
"network_model": { "network_model": {
"bsonType": "string", "bsonType": "string",
"description": "设备网络型号wifi/3G/4G/" "description": "设备网络型号wifi\/3G\/4G\/"
}, },
"window_width": { "window_width": {
"bsonType": "string", "bsonType": "string",
......
{ {
"bsonType": "object", "bsonType": "object",
"required": ["user_id"],
"permission": {
"read": "'READ_UNI_ID_LOG' in auth.permission"
},
"properties": { "properties": {
"_id": { "_id": {
"description": "ID,系统自动生成" "description": "ID,系统自动生成"
...@@ -44,6 +48,7 @@ ...@@ -44,6 +48,7 @@
}, },
"user_id": { "user_id": {
"bsonType": "string", "bsonType": "string",
"foreignKey": "uni-id-users._id",
"description": "用户id,参考uni-id-users表" "description": "用户id,参考uni-id-users表"
}, },
"username": { "username": {
...@@ -62,6 +67,5 @@ ...@@ -62,6 +67,5 @@
"bsonType": "string", "bsonType": "string",
"description": "客户端DCloud AppId" "description": "客户端DCloud AppId"
} }
}, }
"required": []
} }
{ {
"bsonType": "object", "bsonType": "object",
"required": ["permission_id", "permission_name"],
"permission": {
"read": "'READ_UNI_ID_PERMISSIONS' in auth.permission",
"create": "'CREATE_UNI_ID_PERMISSIONS' in auth.permission",
"update": "'UPDATE_UNI_ID_PERMISSIONS' in auth.permission",
"delete": "'DELETE_UNI_ID_PERMISSIONS' in auth.permission"
},
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID,系统自动生成" "description": "存储文档 ID,系统自动生成"
...@@ -41,9 +48,5 @@ ...@@ -41,9 +48,5 @@
"title": "权限名称", "title": "权限名称",
"trim": "both" "trim": "both"
} }
}, }
"required": [ }
"permission_id",
"permission_name"
]
}
\ No newline at end of file
{ {
"bsonType": "object", "bsonType": "object",
"required": ["role_id", "role_name"],
"permission": { "permission": {
"create": false, "read": "'READ_UNI_ID_ROLES' in auth.permission",
"delete": false, "create": "'CREATE_UNI_ID_ROLES' in auth.permission",
"read": false, "update": "'UPDATE_UNI_ID_ROLES' in auth.permission",
"update": false "delete": "'DELETE_UNI_ID_ROLES' in auth.permission"
}, },
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID,系统自动生成" "description": "存储文档 ID,系统自动生成"
}, },
"comment": { "comment": {
"title": "备注",
"bsonType": "string", "bsonType": "string",
"description": "备注", "description": "备注",
"title": "备注",
"trim": "both" "trim": "both"
}, },
"create_date": { "create_date": {
...@@ -24,25 +25,26 @@ ...@@ -24,25 +25,26 @@
} }
}, },
"permission": { "permission": {
"title": "权限",
"bsonType": "array", "bsonType": "array",
"description": "角色拥有的权限列表",
"foreignKey": "uni-id-permissions.permission_id", "foreignKey": "uni-id-permissions.permission_id",
"title": "权限" "description": "角色拥有的权限列表",
"enum": {
"collection": "uni-id-permissions",
"field": "permission_name as text, permission_id as value"
}
}, },
"role_id": { "role_id": {
"title": "唯一ID",
"bsonType": "string", "bsonType": "string",
"description": "角色唯一标识,不可修改,不允许重复", "description": "角色唯一标识,不可修改,不允许重复",
"title": "唯一ID",
"trim": "both" "trim": "both"
}, },
"role_name": { "role_name": {
"title": "名称",
"bsonType": "string", "bsonType": "string",
"description": "角色名称", "description": "角色名称",
"title": "名称",
"trim": "both" "trim": "both"
} }
}, }
"required": [ }
"role_id"
]
}
\ No newline at end of file
{ {
"bsonType": "object", "bsonType": "object",
"permission": { "required": ["username", "password"],
"update": "doc._id == auth.uid", "permission": {
"read": "doc._id == auth.uid" "read": true,
}, "create": "'CREATE_UNI_ID_USERS' in auth.permission",
"properties": { "update": "doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission",
"_id": { "delete": "'DELETE_UNI_ID_USERS' in auth.permission"
"description": "存储文档 ID(用户 ID),系统自动生成" },
}, "properties": {
"ali_openid": { "_id": {
"bsonType": "string", "description": "存储文档 ID(用户 ID),系统自动生成"
"description": "支付宝平台openid", },
"permission": { "ali_openid": {
"write": false "bsonType": "string",
} "description": "支付宝平台openid",
}, "permission": {
"apple_openid": { "write": false,
"bsonType": "string", "read": "doc._id == auth.uid"
"description": "苹果登录openid", }
"permission": { },
"write": false "apple_openid": {
} "bsonType": "string",
}, "description": "苹果登录openid",
"avatar": { "permission": {
"bsonType": "string", "write": false,
"description": "头像地址", "read": "doc._id == auth.uid"
"title": "头像地址", }
"trim": "both" },
}, "avatar": {
"avatar_file": { "bsonType": "string",
"bsonType": "file", "description": "头像地址",
"description": "用file类型方便使用uni-file-picker组件", "title": "头像地址",
"title": "头像文件" "trim": "both"
}, },
"comment": { "avatar_file": {
"bsonType": "string", "bsonType": "file",
"description": "备注", "description": "用file类型方便使用uni-file-picker组件",
"title": "备注", "title": "头像文件"
"trim": "both", },
"permission": { "comment": {
"write": false "bsonType": "string",
} "description": "备注",
}, "title": "备注",
"dcloud_appid": { "trim": "both",
"bsonType": "array", "permission": {
"description": "允许登录的客户端的appid列表", "write": false,
"foreignKey": "opendb-app-list.appid", "read": false
"permission": { }
"write": false },
} "dcloud_appid": {
}, "bsonType": "array",
"department_id": { "description": "允许登录的客户端的appid列表",
"bsonType": "array", "foreignKey": "opendb-app-list.appid",
"description": "部门ID", "permission": {
"enum": { "write": false,
"collection": "opendb-department", "read": "doc._id == auth.uid"
"field": "_id as value, name as text", }
"orderby": "name asc" },
}, "department_id": {
"enumType": "tree", "bsonType": "array",
"title": "部门", "description": "部门ID",
"permission": { "enum": {
"write": false "collection": "opendb-department",
} "field": "_id as value, name as text",
}, "orderby": "name asc"
"email": { },
"bsonType": "string", "enumType": "tree",
"description": "邮箱地址", "title": "部门",
"format": "email", "permission": {
"title": "邮箱", "write": false,
"trim": "both", "read": "doc._id == auth.uid"
"permission": { }
"write": false },
} "email": {
}, "bsonType": "string",
"email_confirmed": { "description": "邮箱地址",
"bsonType": "int", "format": "email",
"defaultValue": 0, "title": "邮箱",
"description": "邮箱验证状态:0 未验证 1 已验证", "trim": "both",
"enum": [{ "permission": {
"text": "未验证", "write": false,
"value": 0 "read": "doc._id == auth.uid"
}, }
{ },
"text": "已验证", "email_confirmed": {
"value": 1 "bsonType": "int",
} "defaultValue": 0,
], "description": "邮箱验证状态:0 未验证 1 已验证",
"title": "邮箱验证状态", "enum": [{
"permission": { "text": "未验证",
"write": false "value": 0
} },
}, {
"gender": { "text": "已验证",
"bsonType": "int", "value": 1
"defaultValue": 0, }
"description": "用户性别:0 未知 1 男性 2 女性", ],
"enum": [{ "title": "邮箱验证状态",
"text": "未知", "permission": {
"value": 0 "write": false,
}, "read": "doc._id == auth.uid"
{ }
"text": "男", },
"value": 1 "gender": {
}, "bsonType": "int",
{ "defaultValue": 0,
"text": "女", "description": "用户性别:0 未知 1 男性 2 女性",
"value": 2 "enum": [{
} "text": "未知",
], "value": 0
"title": "性别", },
"permission": { {
"write": false "text": "男",
} "value": 1
}, },
"invite_time": { {
"bsonType": "timestamp", "text": "女",
"description": "受邀时间", "value": 2
"permission": { }
"write": false ],
} "title": "性别",
}, "permission": {
"inviter_uid": { "write": false,
"bsonType": "array", "read": "doc._id == auth.uid"
"description": "用户全部上级邀请者", }
"trim": "both", },
"permission": { "invite_time": {
"write": false "bsonType": "timestamp",
} "description": "受邀时间",
}, "permission": {
"last_login_date": { "write": false,
"bsonType": "timestamp", "read": "doc._id == auth.uid"
"description": "最后登录时间", }
"permission": { },
"write": false "inviter_uid": {
} "bsonType": "array",
}, "description": "用户全部上级邀请者",
"last_login_ip": { "trim": "both",
"bsonType": "string", "permission": {
"description": "最后登录时 IP 地址", "write": false,
"permission": { "read": "doc._id == auth.uid"
"write": false }
} },
}, "last_login_date": {
"mobile": { "bsonType": "timestamp",
"bsonType": "string", "description": "最后登录时间",
"description": "手机号码", "permission": {
"pattern": "^\\+?[0-9-]{3,20}$", "write": false,
"title": "手机号码", "read": "doc._id == auth.uid"
"trim": "both", }
"permission": { },
"write": false "last_login_ip": {
} "bsonType": "string",
}, "description": "最后登录时 IP 地址",
"mobile_confirmed": { "permission": {
"bsonType": "int", "write": false,
"defaultValue": 0, "read": "doc._id == auth.uid"
"description": "手机号验证状态:0 未验证 1 已验证", }
"enum": [{ },
"text": "未验证", "mobile": {
"value": 0 "bsonType": "string",
}, "description": "手机号码",
{ "pattern": "^\\+?[0-9-]{3,20}$",
"text": "已验证", "title": "手机号码",
"value": 1 "trim": "both",
} "permission": {
], "write": false,
"title": "手机号验证状态", "read": "doc._id == auth.uid"
"permission": { }
"write": false },
} "mobile_confirmed": {
}, "bsonType": "int",
"my_invite_code": { "defaultValue": 0,
"bsonType": "string", "description": "手机号验证状态:0 未验证 1 已验证",
"description": "用户自身邀请码", "enum": [{
"permission": { "text": "未验证",
"write": false "value": 0
} },
}, {
"nickname": { "text": "已验证",
"bsonType": "string", "value": 1
"description": "用户昵称", }
"title": "昵称", ],
"trim": "both" "title": "手机号验证状态",
}, "permission": {
"password": { "write": false,
"bsonType": "password", "read": "doc._id == auth.uid"
"description": "密码,加密存储", }
"title": "密码", },
"trim": "both", "my_invite_code": {
"permission": { "bsonType": "string",
"write": false, "description": "用户自身邀请码",
"read": false "permission": {
} "write": false,
}, "read": "doc._id == auth.uid"
"password_secret_version": { }
"bsonType": "int", },
"description": "密码使用的passwordSecret版本", "nickname": {
"title": "passwordSecret", "bsonType": "string",
"permission": { "description": "用户昵称",
"write": false, "title": "昵称",
"read": false "trim": "both"
} },
}, "password": {
"realname_auth": { "bsonType": "password",
"bsonType": "object", "description": "密码,加密存储",
"description": "实名认证信息", "title": "密码",
"permission": { "trim": "both",
"write": false "permission": {
}, "write": false,
"properties": { "read": false
"auth_date": { }
"bsonType": "timestamp", },
"description": "认证通过时间" "password_secret_version": {
}, "bsonType": "int",
"auth_status": { "description": "密码使用的passwordSecret版本",
"bsonType": "int", "title": "passwordSecret",
"description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败", "permission": {
"maximum": 3, "write": false,
"minimum": 0 "read": false
}, }
"contact_email": { },
"bsonType": "string", "realname_auth": {
"description": "联系人邮箱" "bsonType": "object",
}, "description": "实名认证信息",
"contact_mobile": { "permission": {
"bsonType": "string", "write": false,
"description": "联系人手机号码" "read": "doc._id == auth.uid"
}, },
"contact_person": { "properties": {
"bsonType": "string", "auth_date": {
"description": "联系人姓名" "bsonType": "timestamp",
}, "description": "认证通过时间"
"id_card_back": { },
"bsonType": "string", "auth_status": {
"description": "身份证反面照 URL" "bsonType": "int",
}, "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败",
"id_card_front": { "maximum": 3,
"bsonType": "string", "minimum": 0
"description": "身份证正面照 URL" },
}, "contact_email": {
"identity": { "bsonType": "string",
"bsonType": "string", "description": "联系人邮箱"
"description": "身份证号码/营业执照号码" },
}, "contact_mobile": {
"in_hand": { "bsonType": "string",
"bsonType": "string", "description": "联系人手机号码"
"description": "手持身份证照片 URL" },
}, "contact_person": {
"license": { "bsonType": "string",
"bsonType": "string", "description": "联系人姓名"
"description": "营业执照 URL" },
}, "id_card_back": {
"real_name": { "bsonType": "string",
"bsonType": "string", "description": "身份证反面照 URL"
"description": "真实姓名/企业名称" },
}, "id_card_front": {
"type": { "bsonType": "string",
"bsonType": "int", "description": "身份证正面照 URL"
"description": "用户类型:0 个人用户 1 企业用户", },
"maximum": 1, "identity": {
"minimum": 0 "bsonType": "string",
} "description": "身份证号码/营业执照号码"
}, },
"required": [ "in_hand": {
"type", "bsonType": "string",
"auth_status" "description": "手持身份证照片 URL"
] },
}, "license": {
"register_date": { "bsonType": "string",
"bsonType": "timestamp", "description": "营业执照 URL"
"description": "注册时间", },
"forceDefaultValue": { "real_name": {
"$env": "now" "bsonType": "string",
} "description": "真实姓名/企业名称"
}, },
"register_ip": { "type": {
"bsonType": "string", "bsonType": "int",
"description": "注册时 IP 地址", "description": "用户类型:0 个人用户 1 企业用户",
"forceDefaultValue": { "maximum": 1,
"$env": "clientIP" "minimum": 0
} }
}, },
"role": { "required": [
"bsonType": "array", "type",
"description": "用户角色", "auth_status"
"enum": { ]
"collection": "uni-id-roles", },
"field": "role_id as value, role_name as text" "register_date": {
}, "bsonType": "timestamp",
"foreignKey": "uni-id-roles.role_id", "description": "注册时间",
"permission": { "forceDefaultValue": {
"write": false "$env": "now",
}, "read": "doc._id == auth.uid"
"title": "角色" }
}, },
"score": { "register_ip": {
"bsonType": "int", "bsonType": "string",
"description": "用户积分,积分变更记录可参考:uni-id-scores表定义", "description": "注册时 IP 地址",
"permission": { "forceDefaultValue": {
"write": false "$env": "clientIP",
} "read": "doc._id == auth.uid"
}, }
"status": { },
"bsonType": "int", "role": {
"defaultValue": 0, "bsonType": "array",
"description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝", "description": "用户角色",
"permission": { "enum": {
"write": false "collection": "uni-id-roles",
}, "field": "role_id as value, role_name as text"
"enum": [{ },
"text": "正常", "foreignKey": "uni-id-roles.role_id",
"value": 0 "permission": {
}, "write": false,
{ "read": "doc._id == auth.uid"
"text": "禁用", },
"value": 1 "title": "角色"
}, },
{ "score": {
"text": "审核中", "bsonType": "int",
"value": 2 "description": "用户积分,积分变更记录可参考:uni-id-scores表定义",
}, "permission": {
{ "write": false,
"text": "审核拒绝", "read": "doc._id == auth.uid"
"value": 3 }
} },
], "status": {
"title": "用户状态" "bsonType": "int",
}, "defaultValue": 0,
"token": { "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝",
"bsonType": "array", "permission": {
"description": "用户token" "write": false,
}, "read": "doc._id == auth.uid"
"username": { },
"bsonType": "string", "enum": [{
"description": "用户名,不允许重复", "text": "正常",
"title": "用户名", "value": 0
"trim": "both", },
"permission": { {
"write": false "text": "禁用",
} "value": 1
}, },
"wx_openid": { {
"bsonType": "object", "text": "审核中",
"description": "微信各个平台openid", "value": 2
"properties": { },
"app": { {
"bsonType": "string", "text": "审核拒绝",
"description": "app平台微信openid" "value": 3
}, }
"mp": { ],
"bsonType": "string", "title": "用户状态"
"description": "微信小程序平台openid" },
}, "token": {
"h5": { "bsonType": "array",
"bsonType": "string", "description": "用户token",
"description": "微信公众号登录openid" "permission": {
}, "read": "doc._id == auth.uid"
"web": { }
"bsonType": "string", },
"description": "PC页面扫码登录openid" "username": {
} "bsonType": "string",
}, "description": "用户名,不允许重复",
"permission": { "title": "用户名",
"write": false "trim": "both",
} "permission": {
}, "write": false
"wx_unionid": { }
"bsonType": "string", },
"description": "微信unionid", "wx_openid": {
"permission": { "bsonType": "object",
"write": false "description": "微信各个平台openid",
} "properties": {
}, "app": {
"qq_openid": { "bsonType": "string",
"bsonType": "object", "description": "app平台微信openid"
"description": "QQ各个平台openid", },
"properties": { "mp": {
"app": { "bsonType": "string",
"bsonType": "string", "description": "微信小程序平台openid"
"description": "app平台QQ openid" },
}, "h5": {
"mp": { "bsonType": "string",
"bsonType": "string", "description": "微信公众号登录openid"
"description": "QQ小程序平台openid" },
} "web": {
}, "bsonType": "string",
"permission": { "description": "PC页面扫码登录openid"
"write": false }
} },
}, "permission": {
"qq_unionid": { "write": false,
"bsonType": "string", "read": "doc._id == auth.uid"
"description": "QQ unionid", }
"permission": { },
"write": false "wx_unionid": {
} "bsonType": "string",
} "description": "微信unionid",
}, "permission": {
"required": [] "write": false,
"read": "doc._id == auth.uid"
}
},
"qq_openid": {
"bsonType": "object",
"description": "QQ各个平台openid",
"properties": {
"app": {
"bsonType": "string",
"description": "app平台QQ openid"
},
"mp": {
"bsonType": "string",
"description": "QQ小程序平台openid"
}
},
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
},
"qq_unionid": {
"bsonType": "string",
"description": "QQ unionid",
"permission": {
"write": false,
"read": "doc._id == auth.uid"
}
}
}
} }
...@@ -39,6 +39,18 @@ ...@@ -39,6 +39,18 @@
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": "苹果开发者后台获取的bundleId"
} }
} }
},
"web": {
"oauth": {
"h5-weixin": {
"appid": "微信浏览器内微信登录,所用的微信公众号appid",
"appsecret": "微信公众号后台获取的appsecret"
},
"web-weixin": {
"appid": "手机微信扫码登录,所用的微信开放平台(https://open.weixin.qq.com/)-网站应用的appid",
"appsecret": "微信开放平台-网站应用的appsecret"
}
}
}, },
"mp-weixin": { "mp-weixin": {
"oauth": { "oauth": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册