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/json"
"encoding/xml" "encoding/xml"
"errors" "errors"
"fmt"
"io" "io"
"net/http" "net/http"
"sort" "sort"
"strings" "strings"
log "github.com/sirupsen/logrus"
"github.com/silenceper/wechat/v2/miniprogram/context" "github.com/silenceper/wechat/v2/miniprogram/context"
"github.com/silenceper/wechat/v2/miniprogram/security" "github.com/silenceper/wechat/v2/miniprogram/security"
"github.com/silenceper/wechat/v2/util" "github.com/silenceper/wechat/v2/util"
@@ -128,7 +129,7 @@ func (receiver *PushReceiver) GetMsgData(r *http.Request) (MsgType, EventType, P
if err != nil { if err != nil {
return "", "", nil, err return "", "", nil, err
} }
fmt.Println("decryptMsg string", string(decryptMsg)) log.Debug("decryptMsg string", string(decryptMsg))
var ( var (
msgType MsgType msgType MsgType
eventType EventType eventType EventType
@@ -407,7 +408,7 @@ type CoinInfo struct {
// PushDataSubscribePopup 用户操作订阅通知弹窗事件推送 // PushDataSubscribePopup 用户操作订阅通知弹窗事件推送
type PushDataSubscribePopup struct { type PushDataSubscribePopup struct {
CommonPushData CommonPushData
List string `xml:"SubscribeMsgPopupEvent>List" json:"List"` List []SubscribeMsgPopupEventList `xml:"SubscribeMsgPopupEvent>List" json:"List"`
} }
// SubscribeMsgPopupEvent 用户操作订阅通知弹窗消息回调 // SubscribeMsgPopupEvent 用户操作订阅通知弹窗消息回调