diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 054b06318eb7fec93103686fe74723bee3c72638..26b10944154422073b088e6d1d52dd551515fe73 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 358bdd21cd2ca34121926f7ed7bd5fb8de763f9a..e3a553c9beb2426e1dbcbf4a771c719216276ae3 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 0e9c96bcc7d2c04633fe9b7075d507c447988df2..ec63e775291672c2877aada2bdf2728b06983d2a 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 f6eaf120e613540d8a1a0a17bc50266c1941db44..5e8843e4218b693c24c39c91e859669631d026fc 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": [],