liuxiaolong
2020-07-10 ad3a7f8e565afeca7dd59d7808e72a5a43e9e7f8
service/userService.go
@@ -39,7 +39,7 @@
         }
      } else { //用户已存在
         var userCar models.UserCar
         var plateNos []string
         var plateNos = make([]string, 0)
         all, e := userCar.GetByUserId(tmpUser.Id)
         if e == nil && all != nil {
            for _,up := range all {
@@ -101,13 +101,12 @@
}
func verifyCode(phoneNum string, cod string) bool {
   return true
   //if b,r := existCode(phoneNum);b && r == cod {
   //   return true
   //} else {
   //   fmt.Println("verifyCode false,cod:",cod, "r:",r,"b:",b)
   //}
   //return false
   if b,r := existCode(phoneNum);b && r == cod {
      return true
   } else {
      fmt.Println("verifyCode false,cod:",cod, "r:",r,"b:",b)
   }
   return false
}
func add2Cache(phoneNum string, code string) {