From 788373019078374f6ac75b42497c76a453229d9a Mon Sep 17 00:00:00 2001 From: chenruilong Date: Wed, 16 Nov 2022 14:22:40 +0800 Subject: [PATCH] 1.0.31 --- manifest.json | 2 +- uni_modules/uni-id-pages/changelog.md | 4 ++++ uni_modules/uni-id-pages/package.json | 2 +- .../uni-id-co/module/relate/bind-qq.js | 2 +- .../uni-id-co/module/relate/bind-weixin.js | 2 +- .../uni-id-co/module/verify/send-email-code.js | 14 +++++++------- .../uni-id-co/module/verify/send-sms-code.js | 2 +- .../uniCloud/cloudfunctions/uni-id-co/package.json | 2 +- 8 files changed, 17 insertions(+), 13 deletions(-) diff --git a/manifest.json b/manifest.json index e83615b..b0cb7cd 100644 --- a/manifest.json +++ b/manifest.json @@ -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" : {} diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 1105263..e68febd 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,3 +1,7 @@ +## 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) diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index 714fa8c..fc172e2 100644 --- a/uni_modules/uni-id-pages/package.json +++ b/uni_modules/uni-id-pages/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages", "displayName": "uni-id-pages", - "version": "1.0.29", + "version": "1.0.31", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-qq.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-qq.js index 7a546f9..574f917 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-qq.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-qq.js @@ -78,7 +78,7 @@ module.exports = async function (params = {}) { const bindAccount = { qq_openid: { - [clientPlatform]: openid + [qqPlatform]: openid }, qq_unionid: unionid } diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-weixin.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-weixin.js index 73dcaf8..d649478 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-weixin.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/relate/bind-weixin.js @@ -64,7 +64,7 @@ module.exports = async function (params = {}) { const bindAccount = { wx_openid: { - [clientPlatform]: openid + [weixinPlatform]: openid }, wx_unionid: unionid } diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-email-code.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-email-code.js index 5ed867c..1a6304d 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-email-code.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-email-code.js @@ -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如果是正式项目,需自行实现发送邮件的相关功能` } // -- 测试代码 - - + + //发送邮件--需自行实现 } diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js index a29c101..b392e7e 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/verify/send-sms-code.js @@ -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', diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json index 39307ee..beae069 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json @@ -1,6 +1,6 @@ { "name": "uni-id-co", - "version": "1.0.29", + "version": "1.0.31", "description": "", "main": "index.js", "keywords": [], -- GitLab