|
|
@ -48,13 +48,13 @@ func login(w http.ResponseWriter, r *http.Request) {
|
|
|
|
//为空的处理
|
|
|
|
//为空的处理
|
|
|
|
fmt.Println("username is empty!!!")
|
|
|
|
fmt.Println("username is empty!!!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getint, err := strconv.Atoi()(r.Form.Get("age"))
|
|
|
|
//getint, err := strconv.Atoi()(r.Form.Get("age"))
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println("this is an error")
|
|
|
|
fmt.Println("this is an error")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if getint > 100 {
|
|
|
|
//if getint > 100 {
|
|
|
|
fmt.Println("too old")
|
|
|
|
// fmt.Println("too old")
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|