diff --git a/server.go b/server.go index 64387d4..e2511b9 100644 --- a/server.go +++ b/server.go @@ -52,11 +52,11 @@ func answerInitialAuth(w http.ResponseWriter, r *http.Request) { // func answerWechatPost(w http.ResponseWriter, r *http.Request) { body, _ := ioutil.ReadAll(r.Body) - fmt.Printf("get body: %s", string(body)) + //fmt.Printf("get body: %s", string(body)) s := ReadEncryptedMsg(string(body)) //fmt.Printf("to decrypt %s", s.Encrypt) d := Decode(s.Encrypt) - fmt.Printf("decrypt as: %s", d) + //fmt.Printf("decrypt as: %s", d) h := ReadCommonHeader(d) reply, _ := BuildTextMsg(h.MsgType, h.FromUserName) fmt.Fprint(w, reply)