diff --git a/changelog.md b/changelog.md
index b71dd5fc4ce2914e10ec125237c55d346c127276..f3e1ee214569c084cb3f68d266313efa54f03bfb 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,5 @@
+## 1.0.25(2021-06-23)
+预置uniCloud admin依赖的uniCloud文件,方便uniCloud admin与uni-starter配套使用时免做文件迁移
## 1.0.24(2021-06-23)
删除callFunction拦截器中多余的代码
## 1.0.23(2021-06-22)
diff --git a/common/appInit.js b/common/appInit.js
index d4b4c30413c163bd0a2d04cab464cc114e0b858a..6b7f2081764acb8850b2c1efbbaf6486de7fcfe4 100644
--- a/common/appInit.js
+++ b/common/appInit.js
@@ -235,7 +235,7 @@ export default function() {
//获取用户的token
const token = uni.getStorageSync('uni_id_token')
//token是否已失效
- const tokenExpired = (uni.getStorageSync('uni_id_token_expired') - Date.now()) < 0
+ const tokenExpired = uni.getStorageSync('uni_id_token_expired') < Date.now()
//获取当前页面路径(即url去掉"?"和"?"后的参数)
const url = e.url.split('?')[0]
//控制登录优先级
diff --git a/package.json b/package.json
index 242b6e02ae43e7d499a0406b64299d5bb825398d..351aa727536cab7bad5c20a14554e7012f6aed7c 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"id": "uni-starter",
"displayName": "uni-starter",
- "version": "1.0.24",
+ "version": "1.0.25",
"description": "云端一体应用快速开发基本项目模版",
"keywords": [
"uni-starter",
diff --git a/store/modules/user.js b/store/modules/user.js
index 91d34fb8aceae34840a513dc6b9426ed6118e54e..a62ccdf9be273051f59daa93ecaa99f49d8bb048 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -24,7 +24,6 @@ let state = {
console.log('state.info',state.info);
//存储最新的用户数据到本地持久化存储
uni.setStorageSync('userInfo', state.info);
- uni.setStorageSync('uni_id_uid', state.info._id)
uni.setStorageSync('uni_id_token', state.info.token)
uni.setStorageSync('uni_id_token_expired', state.info.tokenExpired)
@@ -34,6 +33,7 @@ let state = {
state.hasLogin = false;
uni.setStorageSync('userInfo', {});
uni.setStorageSync('uni_id_token', '');
+ uni.setStorageSync('uni_id_token_expired', 0)
}
},
actions = {
@@ -44,4 +44,4 @@ export default {
getters,
mutations,
actions
-}
+}
\ No newline at end of file
diff --git a/uni-starter.config.js b/uni-starter.config.js
index e1592802b89bce66b0d585f8e089e8085009b85f..888d1f5326d23c63d6d55d19d77ad5131e889204 100644
--- a/uni-starter.config.js
+++ b/uni-starter.config.js
@@ -26,7 +26,7 @@ module.exports = {
"/pages/ucenter/userinfo/uploadCutImageToUnicloud",
"/uni_modules/uni-feedback/pages/uni-feedback/add"
],
- "login": ["univerify","smsCode","username", "weixin", "apple"],
+ "login": ["username","smsCode","univerify", "weixin", "apple"],
/*
根据数组的第0项,决定登录方式的第一优先级。
未列举到的,或设备环境不支持的选项,将被隐藏。
diff --git a/uniCloud-aliyun/database/db_init.json b/uniCloud-aliyun/database/db_init.json
index 690fa470debcaaa52f1cf433f4e6b26e42149cec..20f4b1f4bd95d20ea2c4187ef839e9b37d658840 100644
--- a/uniCloud-aliyun/database/db_init.json
+++ b/uniCloud-aliyun/database/db_init.json
@@ -1,6 +1,71 @@
-// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init
+// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init
// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
{
+ "opendb-verify-codes": {
+ "data": []
+ },
+ "uni-id-roles": {
+ "data": []
+ },
+ "uni-id-permissions": {
+ "data": []
+ },
+ "uni-id-log": {
+ "data": []
+ },
+ "opendb-admin-menus": {
+ "data": [{
+ "menu_id": "system_management",
+ "name": "系统管理",
+ "icon": "uni-icons-gear",
+ "url": "",
+ "sort": 1000,
+ "parent_id": "",
+ "permission": [],
+ "enable": true,
+ "create_date": 1602662469396
+ }, {
+ "menu_id": "system_user",
+ "name": "用户管理",
+ "icon": "uni-icons-person",
+ "url": "/pages/system/user/list",
+ "sort": 1010,
+ "parent_id": "system_management",
+ "permission": [],
+ "enable": true,
+ "create_date": 1602662469398
+ }, {
+ "menu_id": "system_role",
+ "name": "角色管理",
+ "icon": "uni-icons-personadd",
+ "url": "/pages/system/role/list",
+ "sort": 1020,
+ "parent_id": "system_management",
+ "permission": [],
+ "enable": true,
+ "create_date": 1602662469397
+ }, {
+ "menu_id": "system_permission",
+ "name": "权限管理",
+ "icon": "uni-icons-locked",
+ "url": "/pages/system/permission/list",
+ "sort": 1030,
+ "parent_id": "system_management",
+ "permission": [],
+ "enable": true,
+ "create_date": 1602662469396
+ }, {
+ "menu_id": "system_menu",
+ "name": "菜单管理",
+ "icon": "uni-icons-settings",
+ "url": "/pages/system/menu/list",
+ "sort": 1040,
+ "parent_id": "system_management",
+ "permission": [],
+ "enable": true,
+ "create_date": 1602662469396
+ }]
+ },
"opendb-news-articles": {
"data": [{
"title": "阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务",
diff --git a/uniCloud-aliyun/database/opendb-admin-menus.schema.json b/uniCloud-aliyun/database/opendb-admin-menus.schema.json
index a733b17fa7d147aaf37f4a2585c077f1847c1bf5..cfeef1b4562a4a372fd850fcf86226c26fb58bc0 100644
--- a/uniCloud-aliyun/database/opendb-admin-menus.schema.json
+++ b/uniCloud-aliyun/database/opendb-admin-menus.schema.json
@@ -1,6 +1,9 @@
{
"bsonType": "object",
"required": ["name", "menu_id"],
+ "permission": {
+ "read": true
+ },
"properties": {
"_id": {
"description": "存储文档 ID,系统自动生成"
diff --git a/uniCloud-aliyun/database/opendb-verify-codes.schema.json b/uniCloud-aliyun/database/opendb-verify-codes.schema.json
index 98f7a28e6fe2ca4499d3a00a6e751ef8ee63e651..50c27c6ae3cc4e90e90eede4d9ea1cd02385c8e9 100644
--- a/uniCloud-aliyun/database/opendb-verify-codes.schema.json
+++ b/uniCloud-aliyun/database/opendb-verify-codes.schema.json
@@ -1,45 +1,45 @@
-{
- "bsonType": "object",
- "properties": {
- "_id": {
- "description": "ID,系统自动生成"
- },
- "code": {
- "bsonType": "string",
- "description": "验证码"
- },
- "create_date": {
- "bsonType": "timestamp",
- "description": "创建时间"
- },
- "device_uuid": {
- "bsonType": "string",
- "description": "设备UUID,常用于图片验证码"
- },
- "email": {
- "bsonType": "string",
- "description": "邮箱"
- },
- "expired_date": {
- "bsonType": "timestamp",
- "description": "过期时间"
- },
- "ip": {
- "bsonType": "string",
- "description": "请求时客户端IP地址"
- },
- "mobile": {
- "bsonType": "string",
- "description": "手机号码"
- },
- "scene": {
- "bsonType": "string",
- "description": "使用验证码的场景,如:login, bind, unbind, pay"
- },
- "state": {
- "bsonType": "int",
- "description": "验证状态:0 未验证、1 已验证、2 已作废"
- }
- },
- "required": []
-}
+{
+ "bsonType": "object",
+ "required": [],
+ "properties": {
+ "_id": {
+ "description": "ID,系统自动生成"
+ },
+ "mobile": {
+ "bsonType": "string",
+ "description": "手机号码"
+ },
+ "email": {
+ "bsonType": "string",
+ "description": "邮箱"
+ },
+ "device_uuid": {
+ "bsonType": "string",
+ "description": "设备UUID,常用于图片验证码"
+ },
+ "code": {
+ "bsonType": "string",
+ "description": "验证码"
+ },
+ "scene": {
+ "bsonType": "string",
+ "description": "使用验证码的场景,如:login, bind, unbind, pay"
+ },
+ "state": {
+ "bsonType": "int",
+ "description": "验证状态:0 未验证、1 已验证、2 已作废"
+ },
+ "ip": {
+ "bsonType": "string",
+ "description": "请求时客户端IP地址"
+ },
+ "create_date": {
+ "bsonType": "timestamp",
+ "description": "创建时间"
+ },
+ "expired_date": {
+ "bsonType": "timestamp",
+ "description": "过期时间"
+ }
+ }
+}
\ No newline at end of file
diff --git a/uniCloud-aliyun/database/uni-id-log.schema.json b/uniCloud-aliyun/database/uni-id-log.schema.json
index dae2f406d761fcdc3cb8e2aff652003ab616ab69..cb1d86b2b96395dd3a2abd8286b713b00e680556 100644
--- a/uniCloud-aliyun/database/uni-id-log.schema.json
+++ b/uniCloud-aliyun/database/uni-id-log.schema.json
@@ -1,41 +1,41 @@
{
"bsonType": "object",
+ "required": ["user_id"],
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
- "create_date": {
- "bsonType": "timestamp",
- "description": "创建时间",
- "forceDefaultValue": {
- "$env": "now"
- }
+ "user_id": {
+ "bsonType": "string",
+ "description": "用户id,参考uni-id-users表"
+ },
+ "ua": {
+ "bsonType": "string",
+ "description": "userAgent"
},
"device_uuid": {
"bsonType": "string",
- "description": "设备唯一标识"
+ "description": "设备唯一标识(需要加密存储)"
},
- "ip": {
+ "type": {
"bsonType": "string",
- "description": "ip地址"
+ "enum": ["login", "logout"],
+ "description": "登录类型"
},
"state": {
"bsonType": "int",
"description": "结果:0 失败、1 成功"
},
- "type": {
- "bsonType": "string",
- "description": "登录类型",
- "enum": ["login", "logout"]
- },
- "ua": {
+ "ip": {
"bsonType": "string",
- "description": "userAgent"
+ "description": "ip地址"
},
- "user_id": {
- "bsonType": "string",
- "description": "用户id,参考uni-id-users表"
+ "create_date": {
+ "bsonType": "timestamp",
+ "description": "创建时间",
+ "forceDefaultValue": {
+ "$env": "now"
+ }
}
- },
- "required": []
+ }
}
diff --git a/uniCloud-aliyun/database/uni-id-users.schema.json b/uniCloud-aliyun/database/uni-id-users.schema.json
index d0a315d7cf42a00cce6fd34ece6fac3cadce7825..2041ca1d6e1fed0adaaa35f4ce7ddc298a5c6ae3 100644
--- a/uniCloud-aliyun/database/uni-id-users.schema.json
+++ b/uniCloud-aliyun/database/uni-id-users.schema.json
@@ -1,274 +1,294 @@
-{
- "bsonType": "object",
- "permission": {
- "read": true,
- "create": false,
- "update": "doc._id == auth.uid",
- "delete": false
- },
- "properties": {
- "_id": {
- "description": "存储文档 ID(用户 ID),系统自动生成"
- },
- "ali_openid": {
- "bsonType": "string",
- "description": "支付宝平台openid"
- },
- "apple_openid": {
- "bsonType": "string",
- "description": "苹果登录openid"
- },
- "avatar": {
- "bsonType": "string",
- "description": "头像地址",
- "title": "头像地址",
- "trim": "both"
- },
- "avatar_file": {
- "bsonType": "file",
- "title": "头像文件",
- "description": "用file类型方便使用uni-file-picker组件"
- },
- "comment": {
- "bsonType": "string",
- "description": "备注",
- "title": "备注",
- "trim": "both"
- },
- "department_id": {
- "bsonType": "array",
- "description": "部门ID",
- "enum": {
- "collection": "opendb-department",
- "field": "_id as value, name as text",
- "orderby": "name asc"
- },
- "enumType": "tree",
- "title": "部门"
- },
- "email": {
- "bsonType": "string",
- "description": "邮箱地址",
- "format": "email",
- "title": "邮箱",
- "trim": "both"
- },
- "email_confirmed": {
- "bsonType": "int",
- "defaultValue": 0,
- "description": "邮箱验证状态:0 未验证 1 已验证",
- "enum": [{
- "text": "未验证",
- "value": 0
- }, {
- "text": "已验证",
- "value": 1
- }],
- "title": "邮箱验证状态"
- },
- "gender": {
- "bsonType": "int",
- "defaultValue": 0,
- "description": "用户性别:0 未知 1 男性 2 女性",
- "enum": [{
- "text": "未知",
- "value": 0
- }, {
- "text": "男",
- "value": 1
- }, {
- "text": "女",
- "value": 2
- }],
- "title": "性别"
- },
- "inviter_uid": {
- "bsonType": "array",
- "description": "用户全部上级邀请者",
- "trim": "both"
- },
- "last_login_date": {
- "bsonType": "timestamp",
- "description": "最后登录时间"
- },
- "last_login_ip": {
- "bsonType": "string",
- "description": "最后登录时 IP 地址"
- },
- "mobile": {
- "bsonType": "string",
- "description": "手机号码",
- "pattern": "^\\+?[0-9-]{3,20}$",
- "title": "手机号码",
- "trim": "both"
- },
- "mobile_confirmed": {
- "bsonType": "int",
- "defaultValue": 0,
- "description": "手机号验证状态:0 未验证 1 已验证",
- "enum": [{
- "text": "未验证",
- "value": 0
- }, {
- "text": "已验证",
- "value": 1
- }],
- "title": "手机号验证状态"
- },
- "my_invite_code": {
- "bsonType": "string",
- "description": "用户自身邀请码"
- },
- "nickname": {
- "bsonType": "string",
- "description": "用户昵称",
- "title": "昵称",
- "trim": "both"
- },
- "password": {
- "bsonType": "password",
- "description": "密码,加密存储",
- "title": "密码",
- "trim": "both"
- },
- "password_secret_version": {
- "bsonType": "int",
- "description": "密码使用的passwordSecret版本",
- "title": "passwordSecret"
- },
- "realname_auth": {
- "bsonType": "object",
- "description": "实名认证信息",
- "properties": {
- "auth_date": {
- "bsonType": "timestamp",
- "description": "认证通过时间"
- },
- "auth_status": {
- "bsonType": "int",
- "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败",
- "maximum": 3,
- "minimum": 0
- },
- "contact_email": {
- "bsonType": "string",
- "description": "联系人邮箱"
- },
- "contact_mobile": {
- "bsonType": "string",
- "description": "联系人手机号码"
- },
- "contact_person": {
- "bsonType": "string",
- "description": "联系人姓名"
- },
- "id_card_back": {
- "bsonType": "string",
- "description": "身份证反面照 URL"
- },
- "id_card_front": {
- "bsonType": "string",
- "description": "身份证正面照 URL"
- },
- "identity": {
- "bsonType": "string",
- "description": "身份证号码\/营业执照号码"
- },
- "in_hand": {
- "bsonType": "string",
- "description": "手持身份证照片 URL"
- },
- "license": {
- "bsonType": "string",
- "description": "营业执照 URL"
- },
- "real_name": {
- "bsonType": "string",
- "description": "真实姓名\/企业名称"
- },
- "type": {
- "bsonType": "int",
- "description": "用户类型:0 个人用户 1 企业用户",
- "maximum": 1,
- "minimum": 0
- }
- },
- "required": ["type", "auth_status"]
- },
- "register_date": {
- "bsonType": "timestamp",
- "description": "注册时间",
- "forceDefaultValue": {
- "$env": "now"
- }
- },
- "register_ip": {
- "bsonType": "string",
- "description": "注册时 IP 地址",
- "forceDefaultValue": {
- "$env": "clientIP"
- }
- },
- "role": {
- "bsonType": "array",
- "description": "用户角色",
- "enum": {
- "collection": "uni-id-roles",
- "field": "role_id as value, role_name as text"
- },
- "foreignKey": "uni-id-roles.role_id",
- "permission": {
- "write": false
- },
- "title": "角色"
- },
- "status": {
- "bsonType": "int",
- "defaultValue": 0,
- "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝",
- "enum": [{
- "text": "正常",
- "value": 0
- }, {
- "text": "禁用",
- "value": 1
- }, {
- "text": "审核中",
- "value": 2
- }, {
- "text": "审核拒绝",
- "value": 3
- }],
- "title": "用户状态"
- },
- "token": {
- "bsonType": "array",
- "description": "用户token"
- },
- "username": {
- "bsonType": "string",
- "description": "用户名,不允许重复",
- "title": "用户名",
- "trim": "both"
- },
- "wx_openid": {
- "bsonType": "object",
- "description": "微信各个平台openid",
- "properties": {
- "app-plus": {
- "bsonType": "string",
- "description": "app平台微信openid"
- },
- "mp-weixin": {
- "bsonType": "string",
- "description": "微信小程序平台openid"
- }
- }
- },
- "wx_unionid": {
- "bsonType": "string",
- "description": "微信unionid"
- }
- },
- "required": []
-}
+{
+ "bsonType": "object",
+ "required": [],
+ "properties": {
+ "_id": {
+ "description": "存储文档 ID(用户 ID),系统自动生成"
+ },
+ "username": {
+ "bsonType": "string",
+ "title": "用户名",
+ "description": "用户名,不允许重复",
+ "trim": "both"
+ },
+ "password": {
+ "bsonType": "password",
+ "title": "密码",
+ "description": "密码,加密存储",
+ "trim": "both"
+ },
+ "password_secret_version": {
+ "bsonType": "int",
+ "title": "passwordSecret",
+ "description": "密码使用的passwordSecret版本"
+ },
+ "nickname": {
+ "bsonType": "string",
+ "title": "昵称",
+ "description": "用户昵称",
+ "trim": "both"
+ },
+ "gender": {
+ "bsonType": "int",
+ "title": "性别",
+ "description": "用户性别:0 未知 1 男性 2 女性",
+ "defaultValue": 0,
+ "enum": [
+ {
+ "text": "未知",
+ "value": 0
+ },
+ {
+ "text": "男",
+ "value": 1
+ },
+ {
+ "text": "女",
+ "value": 2
+ }
+ ]
+ },
+ "status": {
+ "bsonType": "int",
+ "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝",
+ "title": "用户状态",
+ "defaultValue": 0,
+ "enum": [
+ {
+ "text": "正常",
+ "value": 0
+ },
+ {
+ "text": "禁用",
+ "value": 1
+ },
+ {
+ "text": "审核中",
+ "value": 2
+ },
+ {
+ "text": "审核拒绝",
+ "value": 3
+ }
+ ]
+ },
+ "mobile": {
+ "bsonType": "string",
+ "title": "手机号码",
+ "description": "手机号码",
+ "pattern": "^\\+?[0-9-]{3,20}$",
+ "trim": "both"
+ },
+ "mobile_confirmed": {
+ "bsonType": "int",
+ "description": "手机号验证状态:0 未验证 1 已验证",
+ "title": "手机号验证状态",
+ "defaultValue": 0,
+ "enum": [
+ {
+ "text": "未验证",
+ "value": 0
+ },
+ {
+ "text": "已验证",
+ "value": 1
+ }
+ ]
+ },
+ "email": {
+ "bsonType": "string",
+ "format": "email",
+ "title": "邮箱",
+ "description": "邮箱地址",
+ "trim": "both"
+ },
+ "email_confirmed": {
+ "bsonType": "int",
+ "description": "邮箱验证状态:0 未验证 1 已验证",
+ "title": "邮箱验证状态",
+ "defaultValue": 0,
+ "enum": [
+ {
+ "text": "未验证",
+ "value": 0
+ },
+ {
+ "text": "已验证",
+ "value": 1
+ }
+ ]
+ },
+ "avatar": {
+ "bsonType": "string",
+ "title": "头像地址",
+ "description": "头像地址",
+ "trim": "both"
+ },
+ "avatar_file": {
+ "bsonType": "file",
+ "title": "头像文件",
+ "description": "用file类型方便使用uni-file-picker组件"
+ },
+ "department_id": {
+ "bsonType": "array",
+ "description": "部门ID",
+ "title": "部门",
+ "enumType": "tree",
+ "enum": {
+ "collection": "opendb-department",
+ "orderby": "name asc",
+ "field": "_id as value, name as text"
+ }
+ },
+ "role": {
+ "bsonType": "array",
+ "title": "角色",
+ "description": "用户角色",
+ "enum": {
+ "collection": "uni-id-roles",
+ "field": "role_id as value, role_name as text"
+ },
+ "foreignKey": "uni-id-roles.role_id",
+ "permission": {
+ "write": false
+ }
+ },
+ "wx_unionid": {
+ "bsonType": "string",
+ "description": "微信unionid"
+ },
+ "wx_openid": {
+ "bsonType": "object",
+ "description": "微信各个平台openid",
+ "properties": {
+ "app-plus": {
+ "bsonType": "string",
+ "description": "app平台微信openid"
+ },
+ "mp-weixin": {
+ "bsonType": "string",
+ "description": "微信小程序平台openid"
+ }
+ }
+ },
+ "ali_openid": {
+ "bsonType": "string",
+ "description": "支付宝平台openid"
+ },
+ "apple_openid": {
+ "bsonType": "string",
+ "description": "苹果登录openid"
+ },
+ "comment": {
+ "bsonType": "string",
+ "title": "备注",
+ "description": "备注",
+ "trim": "both"
+ },
+ "realname_auth": {
+ "bsonType": "object",
+ "description": "实名认证信息",
+ "required": [
+ "type",
+ "auth_status"
+ ],
+ "properties": {
+ "type": {
+ "bsonType": "int",
+ "minimum": 0,
+ "maximum": 1,
+ "description": "用户类型:0 个人用户 1 企业用户"
+ },
+ "auth_status": {
+ "bsonType": "int",
+ "minimum": 0,
+ "maximum": 3,
+ "description": "认证状态:0 未认证 1 等待认证 2 认证通过 3 认证失败"
+ },
+ "auth_date": {
+ "bsonType": "timestamp",
+ "description": "认证通过时间"
+ },
+ "real_name": {
+ "bsonType": "string",
+ "description": "真实姓名/企业名称"
+ },
+ "identity": {
+ "bsonType": "string",
+ "description": "身份证号码/营业执照号码"
+ },
+ "id_card_front": {
+ "bsonType": "string",
+ "description": "身份证正面照 URL"
+ },
+ "id_card_back": {
+ "bsonType": "string",
+ "description": "身份证反面照 URL"
+ },
+ "in_hand": {
+ "bsonType": "string",
+ "description": "手持身份证照片 URL"
+ },
+ "license": {
+ "bsonType": "string",
+ "description": "营业执照 URL"
+ },
+ "contact_person": {
+ "bsonType": "string",
+ "description": "联系人姓名"
+ },
+ "contact_mobile": {
+ "bsonType": "string",
+ "description": "联系人手机号码"
+ },
+ "contact_email": {
+ "bsonType": "string",
+ "description": "联系人邮箱"
+ }
+ }
+ },
+ "score": {
+ "bsonType": "int",
+ "description": "用户积分,积分变更记录可参考:uni-id-scores表定义"
+ },
+ "register_date": {
+ "bsonType": "timestamp",
+ "description": "注册时间",
+ "forceDefaultValue": {
+ "$env": "now"
+ }
+ },
+ "register_ip": {
+ "bsonType": "string",
+ "description": "注册时 IP 地址",
+ "forceDefaultValue": {
+ "$env": "clientIP"
+ }
+ },
+ "last_login_date": {
+ "bsonType": "timestamp",
+ "description": "最后登录时间"
+ },
+ "last_login_ip": {
+ "bsonType": "string",
+ "description": "最后登录时 IP 地址"
+ },
+ "token": {
+ "bsonType": "array",
+ "description": "用户token"
+ },
+ "inviter_uid": {
+ "bsonType": "array",
+ "description": "用户全部上级邀请者",
+ "trim": "both"
+ },
+ "invite_time": {
+ "bsonType": "timestamp",
+ "description": "受邀时间"
+ },
+ "my_invite_code": {
+ "bsonType": "string",
+ "description": "用户自身邀请码"
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules_tools/copy/manifest.json b/uni_modules_tools/copy/manifest.json
index 86c154c394e70febc29705f8c0a4c7aff629daa3..edbe1ca5931fbf17117a211b0e082646480a78ea 100644
--- a/uni_modules_tools/copy/manifest.json
+++ b/uni_modules_tools/copy/manifest.json
@@ -1,110 +1,125 @@
{
- "name" : "uni-starter",
- "appid" : "__UNI__E5373F7",
- "description" : "云端一体应用快速开发模版",
- "versionName" : "1.0.0",
- "versionCode" : "100",
- "transformPx" : false,
- "app-plus" : {
- "privacy" : {
- "prompt" : "template",
- "template" : {
- "title" : "服务协议和隐私政策",
- "message" : " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
- "buttonAccept" : "同意",
- "buttonRefuse" : "暂不同意"
- }
+ "name": "uni-starter",
+ "appid": "__UNI__E5373F7",
+ "description": "云端一体应用快速开发模版",
+ "versionName": "1.0.0",
+ "versionCode": "100",
+ "transformPx": false,
+ "app-plus": {
+ "privacy": {
+ "prompt": "template",
+ "template": {
+ "title": "服务协议和隐私政策",
+ "message": " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
+ "buttonAccept": "同意",
+ "buttonRefuse": "暂不同意"
+ }
+ },
+ "compatible": {
+ "ignoreVersion": true
+ },
+ "usingComponents": true,
+ "nvueStyleCompiler": "uni-app",
+ "compilerVersion": 3,
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": true,
+ "autoclose": true,
+ "delay": 0
+ },
+ "modules": {
+ "Fingerprint": {
+ },
+ "Share": {
+ },
+ "OAuth": {
+ },
+ "FaceID": {
+ }
+ },
+ "distribute": {
+ "android": {
+ "permissions": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ],
+ "abiFilters": [
+ "armeabi-v7a",
+ "arm64-v8a",
+ "x86"
+ ]
+ },
+ "ios": {
+ },
+ "sdkConfigs": {
+ "oauth": {
+ "apple": {
+ },
+ "weixin": {
+ "appid": "wxffdd8fa6ec4ef2a0",
+ "appsecret": "",
+ "UniversalLinks": ""
+ }
},
- "compatible" : {
- "ignoreVersion" : true
+ "ad": {
},
- "usingComponents" : true,
- "nvueStyleCompiler" : "uni-app",
- "compilerVersion" : 3,
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : true,
- "autoclose" : true,
- "delay" : 0
+ "share": {
+ "weixin": {
+ "appid": "wxffdd8fa6ec4ef2a0",
+ "UniversalLinks": ""
+ }
},
- "modules" : {
- "Fingerprint" : {},
- "Share" : {},
- "OAuth" : {},
- "FaceID" : {}
+ "geolocation": {
},
- "distribute" : {
- "android" : {
- "permissions" : [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ],
- "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
- },
- "ios" : {},
- "sdkConfigs" : {
- "oauth" : {
- "apple" : {},
- "weixin" : {
- "appid" : "wxffdd8fa6ec4ef2a0",
- "appsecret" : "",
- "UniversalLinks" : ""
- }
- },
- "ad" : {},
- "share" : {
- "weixin" : {
- "appid" : "wxffdd8fa6ec4ef2a0",
- "UniversalLinks" : ""
- }
- },
- "geolocation" : {},
- "push" : {
- "unipush" : {}
- },
- "payment" : {}
- }
+ "push": {
+ "unipush": {
+ }
},
- "nvueLaunchMode" : ""
- },
- "quickapp" : {},
- "mp-weixin" : {
- "appid" : "",
- "setting" : {
- "urlCheck" : false,
- "es6" : false
- },
- "usingComponents" : true,
- "betterScopedSlots" : true
- },
- "mp-alipay" : {
- "usingComponents" : true
- },
- "mp-baidu" : {
- "usingComponents" : true
- },
- "mp-toutiao" : {
- "usingComponents" : true
+ "payment": {
+ }
+ }
},
- "uniStatistics" : {
- "enable" : false
+ "nvueLaunchMode": ""
+ },
+ "quickapp": {
+ },
+ "mp-weixin": {
+ "appid": "",
+ "setting": {
+ "urlCheck": false,
+ "es6": false
},
- "h5" : {
- "template" : ""
- }
-}
+ "usingComponents": true,
+ "betterScopedSlots": true
+ },
+ "mp-alipay": {
+ "usingComponents": true
+ },
+ "mp-baidu": {
+ "usingComponents": true
+ },
+ "mp-toutiao": {
+ "usingComponents": true
+ },
+ "uniStatistics": {
+ "enable": false
+ },
+ "h5": {
+ "template": ""
+ }
+}
\ No newline at end of file