From 6acf04adf23e16df8ba87702713a41da9421d6d9 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 30 Apr 2020 10:04:52 +0800 Subject: [PATCH] 测试 --- src/HttpServer/logic/httpserver.go | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 1577ce8..fcd503b 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -3,6 +3,7 @@ package logic import ( "HttpServer/conf" "common/logger" + "fmt" "io/ioutil" //"log" "net/http" @@ -71,6 +72,10 @@ func ClearData(w http.ResponseWriter, r *http.Request) { query := r.URL.Query() uuid := query.Get("uuid") logger.Info("ClearData , uuid:%v", uuid) + if uuid == "" { + fmt.Fprint(w, "uuid is nil,please check") + return + } //HandleRegeister(w,s) } -- libgit2 0.21.0