提交 3dd847ed 编写于 作者: C chenruilong

fix(uni-id-co): 修复 `updateUser` 接口部分参数为空时数据修改异常

上级 1d62674b
...@@ -51,7 +51,7 @@ baseValidator.mobile = function (mobile) { ...@@ -51,7 +51,7 @@ baseValidator.mobile = function (mobile) {
errCode errCode
} }
} }
if (!/^1\d{10}$/.test(mobile)) { if (mobile && !/^1\d{10}$/.test(mobile)) {
return { return {
errCode errCode
} }
...@@ -65,7 +65,7 @@ baseValidator.email = function (email) { ...@@ -65,7 +65,7 @@ baseValidator.email = function (email) {
errCode errCode
} }
} }
if (!/@/.test(email)) { if (email && !/@/.test(email)) {
return { return {
errCode errCode
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册