Browse Source

Merge branch 'master' of http://git.hiwavo.com/Fohow/fohow_api

abiao 4 years ago
parent
commit
4edb9a6bbb

+ 6 - 6
go/gopath/src/fohow.com/apps/controllers/user_controller/user_controller.go

@@ -299,11 +299,11 @@ func (self *UserController) BindingIdCard() {
 		self.ReturnError(403, apps.BindingIdCardLengthError, "", nil)
 	}
 
-	userWithIdCard := user_model.GetUserByIdCardNo(idCard, false)
-	if userWithIdCard != nil {
-		self.ReturnError(403, apps.BindingIdCardExist, "", nil)
-	}
-
+	/*	userWithIdCard := user_model.GetUserByIdCardNo(idCard, false)
+		if userWithIdCard != nil {
+			self.ReturnError(403, apps.BindingIdCardExist, "", nil)
+		}
+	*/
 	birth, err := time.Parse("20060102", idCard[6:14])
 	if err == nil {
 		user.Birthday = birth
@@ -315,7 +315,7 @@ func (self *UserController) BindingIdCard() {
 		self.ReturnError(403, apps.BindingIdCardEmpty, "", nil)
 	}
 	if age >= 0 && age < 18 {
-		self.ReturnError(403, apps.IdCardAgeNotBeAdult, "", nil)
+		//self.ReturnError(403, apps.IdCardAgeNotBeAdult, "", nil)
 	}
 
 	user.Age = age

+ 1 - 1
go/gopath/src/fohow.com/static/tapi/fileauth.txt

@@ -1 +1 @@
-202104230000000eqzah53o9sc5jr34cwnei7ap41mfvl0pty216ul8t0wryk86h
+202106050000000dah8uinibv1ksxcdtwpi743s2h3smc886je741gyxu87tqdhe