From c136b878ce8278e98dd3eb9a4d82ba997b41c180 Mon Sep 17 00:00:00 2001 From: zhangjiani <15646517+Xkta@users.noreply.github.com> Date: Fri, 19 Sep 2025 11:16:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BC=81=E5=BE=AE=E5=9B=9E?= =?UTF-8?q?=E8=B0=83URL=E5=8F=82=E6=95=B0tag=EF=BC=8C=E5=85=BC=E5=AE=B9kra?= =?UTF-8?q?tos=E6=A1=86=E6=9E=B6=20(#855)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: handle JSON parse error when API returns binary file instead of error JSON * fix: add JSON tags to SignatureOptions struct fields for proper serialization * fix: mod module * fix: rollback --------- Co-authored-by: tax --- work/kf/callback.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/work/kf/callback.go b/work/kf/callback.go index a62cb1a..a7e7b92 100644 --- a/work/kf/callback.go +++ b/work/kf/callback.go @@ -8,10 +8,10 @@ import ( // SignatureOptions 微信服务器验证参数 type SignatureOptions struct { - Signature string `form:"msg_signature"` - TimeStamp string `form:"timestamp"` - Nonce string `form:"nonce"` - EchoStr string `form:"echostr"` + Signature string `form:"msg_signature" json:"msg_signature"` + TimeStamp string `form:"timestamp" json:"timestamp"` + Nonce string `form:"nonce" json:"nonce"` + EchoStr string `form:"echostr" json:"echostr"` } // VerifyURL 验证请求参数是否合法并返回解密后的消息内容