Browse Source

update

master
DengBiao 1 year ago
parent
commit
a7a2419143
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/hdl/hdl_wx.go

+ 2
- 2
app/hdl/hdl_wx.go View File

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


Loading…
Cancel
Save