提交 78837301 编写于 作者: C chenruilong

1.0.31

上级 26a60d45
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"oauth" : { "oauth" : {
"univerify" : {}, "univerify" : {},
"weixin" : { "weixin" : {
"appid" : "wxffdd8fa6ec4ef2a0", "appid" : "",
"UniversalLinks" : "https://static-9f641af8-e860-44e5-b18f-f68dd8fe3fe4.bspapp.com/uni-universallinks/__UNI__0B1B311/" "UniversalLinks" : "https://static-9f641af8-e860-44e5-b18f-f68dd8fe3fe4.bspapp.com/uni-universallinks/__UNI__0B1B311/"
}, },
"apple" : {} "apple" : {}
......
## 1.0.31(2022-11-16)
- uni-id-co 修复 验证码可能无法收到的bug
## 1.0.30(2022-11-11)
- uni-id-co 修复 用户只有openid时绑定微信/QQ报错
## 1.0.29(2022-11-10) ## 1.0.29(2022-11-10)
- uni-id-co 支持URL化方式请求 [详情](https://uniapp.dcloud.net.cn/uniCloud/uni-id-pages.html#adapter-http) - uni-id-co 支持URL化方式请求 [详情](https://uniapp.dcloud.net.cn/uniCloud/uni-id-pages.html#adapter-http)
## 1.0.28(2022-11-09) ## 1.0.28(2022-11-09)
......
{ {
"id": "uni-id-pages", "id": "uni-id-pages",
"displayName": "uni-id-pages", "displayName": "uni-id-pages",
"version": "1.0.29", "version": "1.0.31",
"description": "云端一体简单、统一、可扩展的用户中心页面模版", "description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户管理", "用户管理",
......
...@@ -78,7 +78,7 @@ module.exports = async function (params = {}) { ...@@ -78,7 +78,7 @@ module.exports = async function (params = {}) {
const bindAccount = { const bindAccount = {
qq_openid: { qq_openid: {
[clientPlatform]: openid [qqPlatform]: openid
}, },
qq_unionid: unionid qq_unionid: unionid
} }
......
...@@ -64,7 +64,7 @@ module.exports = async function (params = {}) { ...@@ -64,7 +64,7 @@ module.exports = async function (params = {}) {
const bindAccount = { const bindAccount = {
wx_openid: { wx_openid: {
[clientPlatform]: openid [weixinPlatform]: openid
}, },
wx_unionid: unionid wx_unionid: unionid
} }
......
...@@ -23,26 +23,26 @@ module.exports = async function (params = {}) { ...@@ -23,26 +23,26 @@ module.exports = async function (params = {}) {
scene: 'string' scene: 'string'
} }
this.middleware.validate(params, schema) this.middleware.validate(params, schema)
const { const {
email, email,
captcha, captcha,
scene scene
} = params } = params
if (!(Object.values(EMAIL_SCENE).includes(scene))) { if (!(Object.values(EMAIL_SCENE).includes(scene))) {
throw { throw {
errCode: ERROR.INVALID_PARAM errCode: ERROR.INVALID_PARAM
} }
} }
await verifyCaptcha.call(this, { await verifyCaptcha.call(this, {
scene: 'send-email-code', scene: 'send-email-code',
captcha captcha
}) })
// -- 测试代码 // -- 测试代码
require('../../lib/utils/verify-code') await require('../../lib/utils/verify-code')
.setEmailVerifyCode.call(this, { .setEmailVerifyCode.call(this, {
email, email,
code: '123456', code: '123456',
...@@ -54,7 +54,7 @@ module.exports = async function (params = {}) { ...@@ -54,7 +54,7 @@ module.exports = async function (params = {}) {
errMsg: `已启动测试模式,直接使用:123456作为邮箱验证码即可。\n如果是正式项目,需自行实现发送邮件的相关功能` errMsg: `已启动测试模式,直接使用:123456作为邮箱验证码即可。\n如果是正式项目,需自行实现发送邮件的相关功能`
} }
// -- 测试代码 // -- 测试代码
//发送邮件--需自行实现 //发送邮件--需自行实现
} }
...@@ -50,7 +50,7 @@ module.exports = async function (params = {}) { ...@@ -50,7 +50,7 @@ module.exports = async function (params = {}) {
this.config.service.sms.scene && this.config.service.sms.scene &&
this.config.service.sms.scene[scene]) || {} this.config.service.sms.scene[scene]) || {}
if (!templateId) { if (!templateId) {
require('../../lib/utils/verify-code') await require('../../lib/utils/verify-code')
.setMobileVerifyCode.call(this, { .setMobileVerifyCode.call(this, {
mobile: params.mobile, mobile: params.mobile,
code: '123456', code: '123456',
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.0.29", "version": "1.0.31",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册