Commit 6acf04adf23e16df8ba87702713a41da9421d6d9
1 parent
8a0bd33e
Exists in
master
测试
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
| @@ -3,6 +3,7 @@ package logic | @@ -3,6 +3,7 @@ package logic | ||
| 3 | import ( | 3 | import ( |
| 4 | "HttpServer/conf" | 4 | "HttpServer/conf" |
| 5 | "common/logger" | 5 | "common/logger" |
| 6 | + "fmt" | ||
| 6 | "io/ioutil" | 7 | "io/ioutil" |
| 7 | //"log" | 8 | //"log" |
| 8 | "net/http" | 9 | "net/http" |
| @@ -71,6 +72,10 @@ func ClearData(w http.ResponseWriter, r *http.Request) { | @@ -71,6 +72,10 @@ func ClearData(w http.ResponseWriter, r *http.Request) { | ||
| 71 | query := r.URL.Query() | 72 | query := r.URL.Query() |
| 72 | uuid := query.Get("uuid") | 73 | uuid := query.Get("uuid") |
| 73 | logger.Info("ClearData , uuid:%v", uuid) | 74 | logger.Info("ClearData , uuid:%v", uuid) |
| 75 | + if uuid == "" { | ||
| 76 | + fmt.Fprint(w, "uuid is nil,please check") | ||
| 77 | + return | ||
| 78 | + } | ||
| 74 | 79 | ||
| 75 | //HandleRegeister(w,s) | 80 | //HandleRegeister(w,s) |
| 76 | } | 81 | } |