From 984f7396dfa41a02069d3f115d9bd116cb2f87ab Mon Sep 17 00:00:00 2001 From: chenruilong Date: Mon, 26 Dec 2022 19:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(uni-id-co):=20=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E4=B8=8E=E9=82=AE=E7=AE=B1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E8=A7=84=E5=88=99=E4=B8=BA=E7=A9=BA=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E6=97=B6=E4=B8=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages/changelog.md | 3 ++- uni_modules/uni-id-pages/package.json | 2 +- .../uniCloud/cloudfunctions/uni-id-co/common/validator.js | 4 ++-- .../uniCloud/cloudfunctions/uni-id-co/package.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 054b063..26b1094 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,7 +1,8 @@ +## 1.0.38(2022-12-26) +- uni-id-co 优化 手机号与邮箱验证规则为空字符串时不校验 ## 1.0.37(2022-12-09) - 优化admin端样式 ## 1.0.36(2022-12-08) -- uni-id-co 优化 手机号与邮箱验证规则为空字符串时不校验 - uni-id-co 修复 `updateUser` 接口部分参数为空时数据修改异常 ## 1.0.35(2022-11-30) - uni-id-co 新增 匹配到的用户不可在当前应用登录时的错误码 `uni-id-account-not-exists-in-current-app` [错误码说明](https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#errcode) diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index 358bdd2..e3a553c 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.37", + "version": "1.0.38", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js index 0e9c96b..ec63e77 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/validator.js @@ -46,7 +46,7 @@ baseValidator.password = function (password) { baseValidator.mobile = function (mobile) { const errCode = ERROR.INVALID_MOBILE - if (!isValidString(mobile)) { + if (getType(mobile) !== 'string') { return { errCode } @@ -60,7 +60,7 @@ baseValidator.mobile = function (mobile) { baseValidator.email = function (email) { const errCode = ERROR.INVALID_EMAIL - if (!isValidString(email)) { + if (getType(email) !== 'string') { return { errCode } 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 f6eaf12..5e8843e 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.36", + "version": "1.0.38", "description": "", "main": "index.js", "keywords": [], -- GitLab