diff --git a/changelog.md b/changelog.md
index 086df62492ccad9d191a6e28e53bf375599065e5..63a81b6d1d078b0f231acd8f2a210ed7de915e18 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,5 @@
+## 1.0.21(2021-06-21)
+优化:uni_modules模式使用uni-id-cf,方便uni-starter与uniCloud-admin的uni-id-cf同步更新。
## 1.0.20(2021-06-18)
1.H5端新增,强制要求用户同意隐私协议 2.兼容ios端自动设置打开下载页用户的剪切板为邀请者的inviteCode 3.成功注册用户,且请求体含邀请码inviteCode自动关联裂变关系
## 1.0.19(2021-06-17)
diff --git a/uniCloud-aliyun/cloudfunctions/uni-id-cf/package-lock.json b/uniCloud-aliyun/cloudfunctions/uni-id-cf/package-lock.json
deleted file mode 100644
index 983389331662eafebd16de4d1e283cf94c399fa9..0000000000000000000000000000000000000000
--- a/uniCloud-aliyun/cloudfunctions/uni-id-cf/package-lock.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "name": "uni-id-cf",
- "version": "1.0.0",
- "lockfileVersion": 2,
- "requires": true,
- "packages": {
- "": {
- "version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "uni-captcha": "file:../../../uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
- "uni-config-center": "file:../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
- "uni-id": "file:../../../uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id"
- }
- },
- "../../../uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha": {
- "version": "0.1.0",
- "license": "Apache-2.0"
- },
- "../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center": {
- "version": "0.0.2",
- "license": "Apache-2.0"
- },
- "../../../uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id": {
- "version": "3.1.0",
- "license": "Apache-2.0",
- "dependencies": {
- "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
- }
- },
- "node_modules/uni-captcha": {
- "resolved": "../../../uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
- "link": true
- },
- "node_modules/uni-config-center": {
- "resolved": "../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
- "link": true
- },
- "node_modules/uni-id": {
- "resolved": "../../../uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id",
- "link": true
- }
- },
- "dependencies": {
- "uni-captcha": {
- "version": "file:../../../uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
- },
- "uni-config-center": {
- "version": "file:../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
- },
- "uni-id": {
- "version": "file:../../../uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id",
- "requires": {
- "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
- }
- }
- }
-}
diff --git a/uniCloud-aliyun/cloudfunctions/uni-id-cf/package.json b/uniCloud-aliyun/cloudfunctions/uni-id-cf/package.json
deleted file mode 100644
index d3c8e6de716c471d8554c5aeb3a6257dce93e750..0000000000000000000000000000000000000000
--- a/uniCloud-aliyun/cloudfunctions/uni-id-cf/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "uni-id-cf",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "author": "",
- "license": "ISC",
- "dependencies": {
- "uni-captcha": "file:../../../uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
- "uni-config-center": "file:../../../uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center",
- "uni-id": "file:../../../uni_modules/uni-id/uniCloud/cloudfunctions/common/uni-id"
- }
-}
diff --git a/uniCloud-aliyun/cloudfunctions/uni-id-cf/uni-id-cf.param.json b/uniCloud-aliyun/cloudfunctions/uni-id-cf/uni-id-cf.param.json
deleted file mode 100644
index e56192fea0b8602cc578e85534e45aa66cf6d181..0000000000000000000000000000000000000000
--- a/uniCloud-aliyun/cloudfunctions/uni-id-cf/uni-id-cf.param.json
+++ /dev/null
@@ -1,10 +0,0 @@
-// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
-// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
-{
- "action": "getUserInviteCode",
- "params": {
- "code": "093tK5Ga1X1D6B0MSAHa13uRH04tK5Gs"
- },
- "uniInvitationCode":"CY2A8B",
- "uniIdToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2MGMwMzMwOTI0OTU3OTAwMDFiMDAwZGIiLCJyb2xlIjpbXSwicGVybWlzc2lvbiI6W10sImNsaWVudElkIjoiMTk1Zjc3YzE4MGMyM2UzZjVhOGE4ZjM4ZTQyOTAxODYiLCJpYXQiOjE2MjMyMjgxMTYsImV4cCI6MTYyMzIzNTMxNn0.vtNSqdhCaI6fdvk5aHo5Dmdsb5MkBS8omk0b0YzAgIs"
-}
diff --git a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
index 6b0d083db7fc19f2a23bfbab377ab1f984d35eff..17500c4c354799821de17837f0cbce79e080fa33 100644
--- a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
+++ b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json
@@ -12,40 +12,40 @@
"tokenExpiresIn": 2592000,
"oauth": {
"weixin": {
- "appid": "",
- "appsecret": ""
+ "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
+ "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
},
"apple": {
- "bundleId": ""
+ "bundleId": "苹果开发者后台获取的bundleId"
}
}
},
"mp-weixin": {
"oauth": {
"weixin": {
- "appid": "",
- "appsecret": ""
+ "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
+ "appsecret": "微信小程序后台获取的appsecret"
}
}
},
"mp-alipay": {
"oauth": {
"alipay": {
- "appid": "",
- "privateKey": ""
+ "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
+ "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
}
}
},
"service": {
"sms": {
- "name": "",
+ "name": "应用名称,对应短信模版的name",
"codeExpiresIn": 300,
- "smsKey": "",
- "smsSecret": ""
+ "smsKey": "短信密钥key,开通短信服务处可以看到",
+ "smsSecret": "短信密钥secret,开通短信服务处可以看到"
},
"univerify": {
- "appid": "",
- "apiKey": "",
+ "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
+ "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": ""
}
}
diff --git a/uni_modules/uni-feedback/uniCloud/database/db_init.json b/uni_modules/uni-feedback/uniCloud/database/db_init.json
deleted file mode 100644
index 690fa470debcaaa52f1cf433f4e6b26e42149cec..0000000000000000000000000000000000000000
--- a/uni_modules/uni-feedback/uniCloud/database/db_init.json
+++ /dev/null
@@ -1,92 +0,0 @@
-// 在本文件中可配置云数据库初始化,数据格式见:https://uniapp.dcloud.io/uniCloud/cf-database?id=db_init
-// 编写完毕后对本文件点右键,可按配置规则创建表和添加数据
-{
- "opendb-news-articles": {
- "data": [{
- "title": "阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务",
- "excerpt": "阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务",
- "content": "
随着微信、阿里、百度、头条、QQ纷纷推出小程序,开发者的开发维护成本持续上升,负担过重。这点已经成为共识,现在连小程序平台厂商也充分意识到了。
\n阿里小程序团队,为了减轻开发者的负担,在官方的小程序开发者工具中整合了多端框架。
\n经过阿里团队仔细评估,uni-app 在产品完成度、跨平台支持度、开发者社区、可持续发展等多方面优势明显,最终选定 uni-app内置于阿里小程序开发工具中,为开发者提供多端开发解决方案。
\n经过之前1个月的公测,10月10日,阿里小程序正式发布0.70版开发者工具,通过 uni-app 实现多端开发,成为本次版本更新的亮点功能!
\n如下图,在阿里小程序工具左侧主导航选择 uni-app,创建项目,即可开发。
\n\n
阿里小程序开发工具更新说明详见:https://docs.alipay.com/mini/ide/0.70-stable
\n
\n集成uni-app,这对于阿里团队而言,并不是一个容易做出的决定。毕竟 uni-app 是一个三方产品,要经过复杂的评审流程。
\n这一方面突显出阿里团队以开发者需求为本的优秀价值观,另一方面也证明 uni-app的产品确实过硬。
\n很多开发者都有多端需求,但又没有足够精力去了解、评估 uni-app,而处于观望态度。现在大家可以更放心的使用 uni-app 了,它没有让阿里失望,也不会让你失望。
\n自从uni-app推出以来,DCloud也取得了高速的发展,目前拥有370万开发者,框架运行在4.6亿手机用户设备上,月活达到1.35亿(仅包括部分接入DCloud统计平台的数据)。并且数据仍在高速增长中,在市场占有率上处于遥遥领先的位置。
\n本次阿里小程序工具集成 uni-app,会让 uni-app 继续快速爆发,取得更大的成功。
\n后续DCloud还将深化与阿里的合作,在serverless等领域给开发者提供更多优质服务。
\n使用多端框架开发各端应用,是多赢的模式。开发者减轻了负担,获得了更多新流量。而小程序平台厂商,也能保证自己平台上的各种应用可以被及时的更新。
\nDCloud欢迎更多小程序平台厂商,与我们一起合作,为开发者、平台、用户的多赢而努力。
\n进一步了解uni-app,详见:https://uniapp.dcloud.io
\n欢迎扫码关注DCloud公众号,转发消息到朋友圈。
",
- "avatar": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-aliyun-gacrhzeynhss7c6d04/249516a0-3941-11eb-899d-733ae62bed2f.jpg",
- "type": 0,
- "user_id": "123",
- "comment_count": 0,
- "like_count": 0,
- "comment_status": 0,
- "article_status": 1,
- "publish_date": 1616092287006,
- "last_modify_date": 1616092303031,
- "create_time": "2021-03-19T08:25:06.109Z"
- }]
- },
- "opendb-app-versions": {
- "data": [{
- "is_silently": false,
- "is_mandatory": false,
- "appid": "__UNI__03B096E",
- "name": "uni-starter",
- "title": "新增升级中心",
- "contents": "新增升级中心",
- "platform": [
- "Android"
- ],
- "version": "1.0.1",
- "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-3469aac7-a663-4c5d-8ee8-94275f8c09ab/3128d010-01c5-4121-a1d6-f3f919944a23.apk",
- "stable_publish": false,
- "type": "native_app",
- "create_date": 1616771628150
- }]
- },
- "uni-id-users": {
- "data": [{
- "_id": "123",
- "username": "预置用户",
- "nickname": "测试",
- "avatar": "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-dc-site/d84c6de0-6080-11eb-bdc1-8bd33eb6adaa.png",
- "mobile": "18888888888",
- "mobile_confirmed": 1
- }]
- },
- "opendb-banner": {
- "data": [{
- "status": true,
- "bannerfile": {
- "name": "094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "extname": "jpg",
- "fileType": "image",
- "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e/b88a7e17-35f0-4d0d-bc32-93f8909baf03.jpg",
- "size": 70880,
- "image": {
- "width": 500,
- "height": 333,
- "location": "blob:http://localhost:8081/a3bfaab4-7ee6-44d5-a171-dc8225d83598"
- },
- "path": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e/b88a7e17-35f0-4d0d-bc32-93f8909baf03.jpg"
- },
- "open_url": "https://www.dcloud.io/",
- "title": "测试",
- "sort": 1,
- "category_id": "",
- "description": ""
- },
- {
- "status": true,
- "bannerfile": {
- "name": "094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg",
- "extname": "jpg",
- "fileType": "image",
- "url": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e/9db94cb4-a5e0-4ed9-b356-b42a392b3112.jpg",
- "size": 70880,
- "image": {
- "width": 500,
- "height": 333,
- "location": "blob:http://localhost:8081/1a6f718a-4012-476a-9172-590fef2cc518"
- },
- "path": "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-76ce2c5e-31c7-4d81-8fcf-ed1541ecbc6e/9db94cb4-a5e0-4ed9-b356-b42a392b3112.jpg"
- },
- "open_url": "https://www.dcloud.io/",
- "title": "",
- "category_id": "",
- "description": ""
- }]
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-id-cf/changelog.md b/uni_modules/uni-id-cf/changelog.md
new file mode 100644
index 0000000000000000000000000000000000000000..94f4695f51a771c2a4cce3b14e0c858027b2c9c3
--- /dev/null
+++ b/uni_modules/uni-id-cf/changelog.md
@@ -0,0 +1,2 @@
+## 1.0.0(2021-06-21)
+1.0.0版发布
diff --git a/uni_modules/uni-id-cf/package.json b/uni_modules/uni-id-cf/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..495affbacea88d09ec6730290fa1e5858c662dfa
--- /dev/null
+++ b/uni_modules/uni-id-cf/package.json
@@ -0,0 +1,77 @@
+{
+ "id": "uni-id-cf",
+ "displayName": "uni-id-cf",
+ "version": "1.0.0",
+ "description": "uni-id-cf",
+ "keywords": [
+ "uni-id-cf",
+ "uni-id的云函数"
+],
+ "repository": "",
+ "engines": {
+ "HBuilderX": "^3.1.0"
+ },
+ "dcloudext": {
+ "category": [
+ "uniCloud",
+ "云函数模板"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": ["uni-config-center","uni-captcha","uni-id"],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "u",
+ "微信浏览器(Android)": "u",
+ "QQ浏览器(Android)": "u"
+ },
+ "H5-pc": {
+ "Chrome": "u",
+ "IE": "u",
+ "Edge": "u",
+ "Firefox": "u",
+ "Safari": "u"
+ },
+ "小程序": {
+ "微信": "u",
+ "阿里": "u",
+ "百度": "u",
+ "字节跳动": "u",
+ "QQ": "u"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/uni-id-cf/readme.md b/uni_modules/uni-id-cf/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..abd4402b5fc023419455813fcd886771eb166650
--- /dev/null
+++ b/uni_modules/uni-id-cf/readme.md
@@ -0,0 +1,4 @@
+uni-id-cf是uni-id-uniCloudFunction的缩写。
+直接调用他内置的云函数,即可直接使用uni-id的各类api。
+含:登录注册(含用户名密码登录、手机号验证码登录、app一键登录、微信登录、Apple登录、微信小程序登录)、修改密码、忘记密码、退出登录等
+详细的使用方式见[uni-starter](https://ext.dcloud.net.cn/plugin?id=5057)
\ No newline at end of file
diff --git a/uniCloud-aliyun/cloudfunctions/uni-id-cf/index.js b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
similarity index 96%
rename from uniCloud-aliyun/cloudfunctions/uni-id-cf/index.js
rename to uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
index 88d4d52f109cd55ac2b70ae469a115c6a8efe5c3..facf2804d13ae75efda108f12beae69d1ed411c0 100644
--- a/uniCloud-aliyun/cloudfunctions/uni-id-cf/index.js
+++ b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/index.js
@@ -4,10 +4,10 @@ const uniCaptcha = require('uni-captcha')
const createConfig = require('uni-config-center')
const uniIdConfig = createConfig({
pluginId: 'uni-id'
-})._config
+}).config()
const db = uniCloud.database()
const dbCmd = db.command
-exports.main = async (event, context) => {
+exports.main = async (event, context) => {
//UNI_WYQ:这里的uniID换成新的,保证多人访问不会冲突
uniID = uniID.createInstance({
context
diff --git a/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package-lock.json b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package-lock.json
new file mode 100644
index 0000000000000000000000000000000000000000..04567f55e3c27d0d8efd56375f10dbcb3da6d5f4
--- /dev/null
+++ b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package-lock.json
@@ -0,0 +1,60 @@
+{
+ "name": "uni-id-cf",
+ "version": "1.0.0",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "": {
+ "version": "1.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "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": "file:../../../../uni-id/uniCloud/cloudfunctions/common/uni-id"
+ }
+ },
+ "../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha": {
+ "version": "0.1.0",
+ "license": "Apache-2.0"
+ },
+ "../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center": {
+ "version": "0.0.2",
+ "license": "Apache-2.0"
+ },
+ "../../../../uni-id/uniCloud/cloudfunctions/common/uni-id": {
+ "version": "3.1.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "uni-captcha": "file:../../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
+ "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
+ }
+ },
+ "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": {
+ "resolved": "../../../../uni-id/uniCloud/cloudfunctions/common/uni-id",
+ "link": true
+ }
+ },
+ "dependencies": {
+ "uni-captcha": {
+ "version": "file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
+ },
+ "uni-config-center": {
+ "version": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
+ },
+ "uni-id": {
+ "version": "file:../../../../uni-id/uniCloud/cloudfunctions/common/uni-id",
+ "requires": {
+ "uni-captcha": "file:../../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha",
+ "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
+ }
+ }
+ }
+}
diff --git a/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..e6ae55cae62890eb32cd9925b596e662e95c233a
--- /dev/null
+++ b/uni_modules/uni-id-cf/uniCloud/cloudfunctions/uni-id-cf/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "uni-id-cf",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "ISC",
+ "dependencies": {
+ "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": "file:../../../../uni-id/uniCloud/cloudfunctions/common/uni-id"
+ }
+}
diff --git a/uni_modules_tools/config.js b/uni_modules_tools/config.js
index 530e70c499ed32941585f49e905321950726ad57..c71e67c467eeb55c4a27214983f9ab6cec5d262f 100644
--- a/uni_modules_tools/config.js
+++ b/uni_modules_tools/config.js
@@ -7,39 +7,39 @@
"app-plus": {
"oauth": {
"weixin": {
- "appid": "",
- "appsecret": ""
+ "appid": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appid",
+ "appsecret": "填写来源微信开放平台https://open.weixin.qq.com/创建的应用的appsecret"
},
"apple": {
- "bundleId": ""
+ "bundleId": "苹果开发者后台获取的bundleId"
}
}
},
"mp-weixin": {
"oauth": {
"weixin": {
- "appid": "",
- "appsecret": ""
+ "appid": "微信小程序登录所用的appid、appsecret需要在对应的小程序管理控制台获取",
+ "appsecret": "微信小程序后台获取的appsecret"
}
}
},
"mp-alipay": {
"oauth": {
"alipay": {
- "appid": "",
- "privateKey": ""
+ "appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr",
+ "privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr"
}
}
},
"service": {
"sms": {
- "name": "",
- "smsKey": "",
- "smsSecret": ""
+ "name": "应用名称,对应短信模版的name",
+ "smsKey": "短信密钥key,开通短信服务处可以看到",
+ "smsSecret": "短信密钥secret,开通短信服务处可以看到"
},
"univerify": {
- "appid": "",
- "apiKey": "",
+ "appid": "当前应用的appid,使用云函数URL化,此项必须配置",
+ "apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965",
"apiSecret": ""
}
}