提交 78837301 编写于 作者: C chenruilong

1.0.31

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