From 705618efef78994dfa8251dc0a9d7317db6cf6a4 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 29 Jun 2020 17:08:50 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/httpserver.go | 3 +++ src/HttpServer/logic/logic.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 1f39023..73c0ef0 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -951,6 +951,9 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { uniqueid := "" Uuid := 0 if len(r.Header) > 0 { + for _, v := range r.Header { + logger.Info("UserLogin***=%v", v) + } Uuid, _ = strconv.Atoi(r.Header.Get("Uuid")) gameid = r.Header.Get("Gameid") channel = r.Header.Get("Channel") diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 61a94bc..6db6304 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -1084,12 +1084,12 @@ func HandlerLogin(w http.ResponseWriter, data string, uniqueuuid, gameid, channe pdata, err := GetUserSelfData(uniqueuuid) - if err != nil { + /*if err != nil { logger.Info("GetUserSelfData HandlerLogin data failed:%v,for:%v", err, data) resp.Message = "GetUserSelfData failed" resp.Code = 1 break - } + }*/ resp.Data.PlayerData = pdata resp.Code = ERROR_OK -- libgit2 0.21.0