Browse Source

update

master
DengBiao 1 year ago
parent
commit
784506b4de
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/hdl/hdl_wx.go

+ 2
- 1
app/hdl/hdl_wx.go View File

@@ -87,7 +87,7 @@ type WXEventForScanMsg struct {
func WXMsgReceive(c *gin.Context) { func WXMsgReceive(c *gin.Context) {
log.Printf("[消息接收] - 收到新消息") log.Printf("[消息接收] - 收到新消息")
var msg WXMsg var msg WXMsg
err := c.ShouldBindXML(&msg)
err := c.ShouldBindJSON(&msg)
if err != nil { if err != nil {
log.Printf("[消息接收] - XML数据包解析失败: %v\n", err) log.Printf("[消息接收] - XML数据包解析失败: %v\n", err)
return return
@@ -147,6 +147,7 @@ func WXMsgReceive(c *gin.Context) {
} }


c.String(http.StatusOK, "") c.String(http.StatusOK, "")
return
} }


// WXRepTextMsg 微信回复文本消息结构体 // WXRepTextMsg 微信回复文本消息结构体


Loading…
Cancel
Save