From f80bd9745d36776de63e945468797cefece8be28 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sat, 12 Oct 2024 13:53:47 +0800 Subject: [PATCH] 1 --- app/hdl/hdl_wx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hdl/hdl_wx.go b/app/hdl/hdl_wx.go index 9a7b99e..85478a9 100644 --- a/app/hdl/hdl_wx.go +++ b/app/hdl/hdl_wx.go @@ -92,7 +92,7 @@ type WXEventForScanMsg struct { func WXMsgReceive(c *gin.Context) { log.Printf("[消息接收] - 收到新消息") var msg WXMsg - err := c.ShouldBindJSON(&msg) + err := c.ShouldBindXML(&msg) if err != nil { log.Printf("[消息接收] - XML数据包解析失败: %v\n", err) return