| | |
| | | } |
| | | } |
| | | |
| | | func (sv *UserService) AddPlateNo(userId, plateNo string) bool { |
| | | return false |
| | | } |
| | | |
| | | func NewVerifyCode(phoneNum string) error { |
| | | regionId := "cn-hangzhou" |
| | | accessKeyId := "LTAIkHFaStA1JKk5" |
| | |
| | | } |
| | | |
| | | 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) { |