From 556ad55fc22a70e1d06aee209a9ed2702c0ef9bf Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 3 Apr 2025 16:03:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=A9=E5=A4=A7=E4=BA=86=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E8=B6=85=E5=B8=82=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/sign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/sign.go b/utils/sign.go index 68ef661..0598e61 100644 --- a/utils/sign.go +++ b/utils/sign.go @@ -41,7 +41,7 @@ func VerifySignature(paramsMap map[string]interface{}, receivedTimestamp, receiv return errors.New("签名错误") } - if currentTime-timestamp > 1500 { + if currentTime-timestamp > 5000 { return errors.New("签名超时") } } From e59343e5797dd951be59cab85a7aeccb4ae9f569 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 3 Apr 2025 16:03:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=A9=E5=A4=A7=E4=BA=86=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E8=B6=85=E5=B8=82=E6=97=B6=E9=97=B41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/sign.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/sign.go b/utils/sign.go index 0598e61..af04932 100644 --- a/utils/sign.go +++ b/utils/sign.go @@ -34,8 +34,6 @@ func VerifySignature(paramsMap map[string]interface{}, receivedTimestamp, receiv currentTime := time.Now().Unix() * 1000 timestamp, err := strconv.ParseInt(receivedTimestamp, 10, 64) - fmt.Println(currentTime) - fmt.Println(timestamp) if err != nil { return errors.New("签名错误")