Ver código fonte

Merge branch 'master' of http://git.shengws.com/zhangbj/sso into sso_branch

csx 4 anos atrás
pai
commit
3fe4281b82

+ 1 - 1
controllers/mobile_regist_controller.go Ver arquivo

@@ -187,7 +187,7 @@ func (this *MobileRegistController) CreateOrgSubmit() {
187 187
 	orgPhone := this.GetString("org_phone")
188 188
 
189 189
 	if len(orgPhone) > 0 {
190
-		if utils.PhoneRegexp().MatchString(orgPhone) == false {
190
+		if utils.CellPhoneRegexp().MatchString(orgPhone) == false {
191 191
 			this.Data["json"] = enums.MakeFailResponseJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
192 192
 			this.ServeJSON()
193 193
 			return

+ 1 - 1
controllers/org_controller.go Ver arquivo

@@ -146,7 +146,7 @@ func (this *OrgController) CreateSubmit() {
146 146
 	orgPics := this.GetString("org_pics")
147 147
 
148 148
 	if len(orgPhone) > 0 {
149
-		if utils.PhoneRegexp().MatchString(orgPhone) == false {
149
+		if utils.CellPhoneRegexp().MatchString(orgPhone) == false {
150 150
 			this.Data["json"] = enums.MakeFailResponseJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
151 151
 			this.ServeJSON()
152 152
 			return