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 | 804 | s := string(result) |
805 | 805 | if s == "" { |
806 | 806 | logger.Error("UserLogin bodynil") |
807 | - fmt.Fprint(w, "failed") | |
808 | - return | |
807 | + //fmt.Fprint(w, "failed") | |
808 | + //return | |
809 | 809 | } |
810 | 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 | 41 | if err != nil { |
42 | 42 | logger.Info("json decode HandlerLogin data failed:%v,for:%v", err, data) |
43 | 43 | resp.Message = "json unmarshal failed" |
44 | - resp.Code = 1 | |
44 | + resp.Code = 0 | |
45 | 45 | respstr, _ := json.Marshal(&resp) |
46 | 46 | logger.Info("###HandlerLogin###rdata:%v", string(respstr)) |
47 | 47 | fmt.Fprint(w, string(respstr)) | ... | ... |