diff --git a/manifest.json b/manifest.json index e83615b2c625b17b5991ecb1f0b35ab89d0a5f47..b0cb7cd07d0314caab56f9ffd52369b81c084e5d 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 110526348b916a42d49ab4b2a4c42a1a1909f773..e68febde1a67dc217c98b0ea2399c2b14ad012fa 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 714fa8c2001decdcbaad6a27396c6b681e9b80f2..fc172e23561ff6c12e72ec6323a8c0058742a492 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 7a546f918308c1a297ffeecb591f449b1f36eb81..574f917c582428a3f0df63e6a9e05727b44bb68f 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 73dcaf86caa72bdad5d48f5c005b099672ea9595..d64947817e08b46dac4222d3290f85645ba4a5f9 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 5ed867c75bb0279a5fe11d7be1c3947ed4777a02..1a6304dace921fe3ce296c41b26f0bb031771997 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 a29c1011dec0f6402289de185f3e89a8f7532293..b392e7eadd30d53c4393c296c95f918d5cf5c822 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 39307ee8191c521e585d1b338aeba3c1e9cbd67f..beae06954787283b1fe2e3d1dddbfc2d237298da 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": [],