Browse Source

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

csx 4 years ago
parent
commit
3fe4281b82
2 changed files with 2 additions and 2 deletions
  1. 1 1
      controllers/mobile_regist_controller.go
  2. 1 1
      controllers/org_controller.go

+ 1 - 1
controllers/mobile_regist_controller.go View File

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

+ 1 - 1
controllers/org_controller.go View File

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