Commit f5e8b9b0 by 庄冰

手机号

parent a2909f70
...@@ -47,7 +47,7 @@ class NeedinfoService extends ServiceBase { ...@@ -47,7 +47,7 @@ class NeedinfoService extends ServiceBase {
return system.getResultFail(-107,"联系电话不能为空!") return system.getResultFail(-107,"联系电话不能为空!")
} }
var reg =/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(14[0-9]{1})|)+\d{8})$/; var reg =/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(14[0-9]{1})|)+\d{8})$/;
if(ab.contact_mobile.length!=11 || !reg.test(ab.contact_mobile)){ if(ab.contact_mobile.length!=11){
return system.getResultFail(-108,"联系电话格式错误!") return system.getResultFail(-108,"联系电话格式错误!")
} }
var channel = await this.launchchannelDao.model.findOne({ var channel = await this.launchchannelDao.model.findOne({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment