liuxiaolong
2020-06-29 df6d61cdad1b72e1b94e87902b39a09f36b8e044
service/userService.go
@@ -54,6 +54,10 @@
   }
}
func (sv *UserService) AddPlateNo(userId, plateNo string) bool {
   return false
}
func NewVerifyCode(phoneNum string) error {
   regionId := "cn-hangzhou"
   accessKeyId := "LTAIkHFaStA1JKk5"
@@ -81,12 +85,13 @@
}
func verifyCode(phoneNum string, cod string) bool {
   if b,r := existCode(phoneNum);b && r == cod {
      return true
   } else {
      fmt.Println("verifyCode false,cod:",cod, "r:",r,"b:",b)
   }
   return false
   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
}
func add2Cache(phoneNum string, code string) {