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 | 3 | import ( |
4 | 4 | "HttpServer/conf" |
5 | 5 | "common/logger" |
6 | + "fmt" | |
6 | 7 | "io/ioutil" |
7 | 8 | //"log" |
8 | 9 | "net/http" |
... | ... | @@ -71,6 +72,10 @@ func ClearData(w http.ResponseWriter, r *http.Request) { |
71 | 72 | query := r.URL.Query() |
72 | 73 | uuid := query.Get("uuid") |
73 | 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 | 80 | //HandleRegeister(w,s) |
76 | 81 | } | ... | ... |