diff --git a/chatSession.go b/chatSession.go index 0e71d02..419851b 100644 --- a/chatSession.go +++ b/chatSession.go @@ -164,8 +164,8 @@ func (ss *openIDSessionData) incomingMsg(v InWechatMsg) { log.Printf("current procedure after command = %s", ss.Procedure) if !processed { // transfer to Customer Service (kf) //start transfer - ss.state.response, _ = BuildKFTransferAnyOneMsg(openID) - v.replyXML(ss.state.response) + xml, _ := BuildKFTransferAnyOneMsg(openID) + v.replyXML(xml) kfSendTxt(openID, "已转接校友会理事会,稍后答复您") } } diff --git a/chatState.go b/chatState.go index 0ef1dde..a2a89a7 100644 --- a/chatState.go +++ b/chatState.go @@ -24,7 +24,7 @@ type chatState struct { Data map[string]string `json:"Data"` //the state save some data for later usage //runtime memory only - response string //被动回复消息的内容 + //response string //被动回复消息的内容 } func createEmptyState(openID, procedure string, expireInSeconds int32) chatState {