Merge branch 'dev'

This commit is contained in:
wucongxing8150 2025-04-03 16:03:55 +08:00
commit 21ecde024e

View File

@ -34,14 +34,12 @@ 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("签名错误")
}
if currentTime-timestamp > 1500 {
if currentTime-timestamp > 5000 {
return errors.New("签名超时")
}
}