1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-23 13:42:25 +08:00
This commit is contained in:
houseme
2023-10-14 01:05:01 +08:00
parent ef4e3a0a3e
commit 9e54a6a27b

View File

@@ -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 用户操作订阅通知弹窗消息回调