From 0196a3ce08c3ceae094e76955409734d5060d44a Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Thu, 6 Jul 2017 16:47:40 +1000 Subject: [PATCH] bugfix for invalid message --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index f7d79c7..1fdaa70 100644 --- a/server.go +++ b/server.go @@ -68,10 +68,10 @@ func answerWechatPost(w http.ResponseWriter, r *http.Request) { } else { //put into user session based pipeline AllInMessage <- in + //read instant response + reply = <-in.instantResponse } - //read instant response - reply = <-in.instantResponse in.destroy() //uncomment the followin two lines to enable echo test // state, _ := echoCommand(in.header.FromUserName, in)