diff --git a/app/hdl/hdl_wx.go b/app/hdl/hdl_wx.go index 313e64f..8e248b5 100644 --- a/app/hdl/hdl_wx.go +++ b/app/hdl/hdl_wx.go @@ -100,14 +100,14 @@ func WXMsgReceive(c *gin.Context) { log.Printf("[事件类型]-收到消息, 事件类型为: %s, 事件KEY值为: %s\n, 二维码的ticket值为: %s\n", eventMsg.Event, eventMsg.EventKey, eventMsg.Ticket) if eventMsg.Event == "subscribe" { //用户未关注时,进行关注后的事件推送 - err := DealCallBack(eventMsg.FromUserName, eventMsg.Ticket) + err := DealCallBack(eventMsg.FromUserName, eventMsg.EventKey) if err != nil { WXMsgReply(c, eventMsg.ToUserName, eventMsg.FromUserName, err.Error()) } } if eventMsg.Event == "SCAN" { //用户已关注时的事件推送 - err := DealCallBack(eventMsg.FromUserName, eventMsg.Ticket) + err := DealCallBack(eventMsg.FromUserName, eventMsg.EventKey) if err != nil { WXMsgReply(c, eventMsg.ToUserName, eventMsg.FromUserName, err.Error()) }