From ca5c19e13bfbf53a62cd6725d5ae7aab3ecaf501 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 10 Jun 2020 16:44:27 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/httpserver.go | 4 ++-- src/HttpServer/logic/logic.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 24d8f48..045cd36 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -804,8 +804,8 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { s := string(result) if s == "" { logger.Error("UserLogin bodynil") - fmt.Fprint(w, "failed") - return + //fmt.Fprint(w, "failed") + //return } logger.Info("UserLogin , body:%v,uuid=%v token=%v", s, Uuid, Token) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 87e22bd..421d6e5 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -41,7 +41,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { if err != nil { logger.Info("json decode HandlerLogin data failed:%v,for:%v", err, data) resp.Message = "json unmarshal failed" - resp.Code = 1 + resp.Code = 0 respstr, _ := json.Marshal(&resp) logger.Info("###HandlerLogin###rdata:%v", string(respstr)) fmt.Fprint(w, string(respstr)) -- libgit2 0.21.0