From 9e54a6a27b4a1dc18bb0591c6f1df62170f44ff2 Mon Sep 17 00:00:00 2001 From: houseme Date: Sat, 14 Oct 2023 01:05:01 +0800 Subject: [PATCH] fix --- miniprogram/message/message.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/miniprogram/message/message.go b/miniprogram/message/message.go index 0f8c93d..c58ac9d 100644 --- a/miniprogram/message/message.go +++ b/miniprogram/message/message.go @@ -4,12 +4,13 @@ import ( "encoding/json" "encoding/xml" "errors" - "fmt" "io" "net/http" "sort" "strings" + log "github.com/sirupsen/logrus" + "github.com/silenceper/wechat/v2/miniprogram/context" "github.com/silenceper/wechat/v2/miniprogram/security" "github.com/silenceper/wechat/v2/util" @@ -128,7 +129,7 @@ func (receiver *PushReceiver) GetMsgData(r *http.Request) (MsgType, EventType, P if err != nil { return "", "", nil, err } - fmt.Println("decryptMsg string", string(decryptMsg)) + log.Debug("decryptMsg string", string(decryptMsg)) var ( msgType MsgType eventType EventType @@ -407,7 +408,7 @@ type CoinInfo struct { // PushDataSubscribePopup 用户操作订阅通知弹窗事件推送 type PushDataSubscribePopup struct { CommonPushData - List string `xml:"SubscribeMsgPopupEvent>List" json:"List"` + List []SubscribeMsgPopupEventList `xml:"SubscribeMsgPopupEvent>List" json:"List"` } // SubscribeMsgPopupEvent 用户操作订阅通知弹窗消息回调