DengBiao pirms 1 gada
vecāks
revīzija
a7a2419143
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      app/hdl/hdl_wx.go

+ 2
- 2
app/hdl/hdl_wx.go Parādīt failu

@@ -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())
}


Notiek ielāde…
Atcelt
Saglabāt