From 9996a2a749b112a3d8b23913496332d4b6302563 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 5 Mar 2024 16:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=AE=E4=BF=A1=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=B9=B3=E5=8F=B0=E5=AF=B9=E6=8E=A5=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BC=93=E5=AD=98=E3=80=82=E4=BF=AE=E6=94=B9=E5=85=A5?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/v1/weChat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controller/v1/weChat.go b/api/controller/v1/weChat.go index 128cde6..8c8bc4f 100644 --- a/api/controller/v1/weChat.go +++ b/api/controller/v1/weChat.go @@ -20,7 +20,7 @@ func (r *WeChat) GetScheme(c *gin.Context) { WeChatRequest := v1.WeChatRequest{} req := WeChatRequest.GetScheme - if err := c.ShouldBind(&req); err != nil { + if err := c.ShouldBindJSON(&req); err != nil { responses.FailWithMessage(err.Error(), c) return }