Commit ca5c19e13bfbf53a62cd6725d5ae7aab3ecaf501
1 parent
1deb8c5d
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
@@ -804,8 +804,8 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { | @@ -804,8 +804,8 @@ func UserLogin(w http.ResponseWriter, r *http.Request) { | ||
804 | s := string(result) | 804 | s := string(result) |
805 | if s == "" { | 805 | if s == "" { |
806 | logger.Error("UserLogin bodynil") | 806 | logger.Error("UserLogin bodynil") |
807 | - fmt.Fprint(w, "failed") | ||
808 | - return | 807 | + //fmt.Fprint(w, "failed") |
808 | + //return | ||
809 | } | 809 | } |
810 | logger.Info("UserLogin , body:%v,uuid=%v token=%v", s, Uuid, Token) | 810 | logger.Info("UserLogin , body:%v,uuid=%v token=%v", s, Uuid, Token) |
811 | 811 |
src/HttpServer/logic/logic.go
@@ -41,7 +41,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | @@ -41,7 +41,7 @@ func HandlerLogin(w http.ResponseWriter, data string, uuid int, token string) { | ||
41 | if err != nil { | 41 | if err != nil { |
42 | logger.Info("json decode HandlerLogin data failed:%v,for:%v", err, data) | 42 | logger.Info("json decode HandlerLogin data failed:%v,for:%v", err, data) |
43 | resp.Message = "json unmarshal failed" | 43 | resp.Message = "json unmarshal failed" |
44 | - resp.Code = 1 | 44 | + resp.Code = 0 |
45 | respstr, _ := json.Marshal(&resp) | 45 | respstr, _ := json.Marshal(&resp) |
46 | logger.Info("###HandlerLogin###rdata:%v", string(respstr)) | 46 | logger.Info("###HandlerLogin###rdata:%v", string(respstr)) |
47 | fmt.Fprint(w, string(respstr)) | 47 | fmt.Fprint(w, string(respstr)) |