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)