打印了签名时间戳

This commit is contained in:
wucongxing8150 2025-04-03 15:41:47 +08:00
parent fec81e9e74
commit f044361488

View File

@ -32,7 +32,11 @@ func VerifySignature(paramsMap map[string]interface{}, receivedTimestamp, receiv
// 验证时间戳是否超出 5 分钟-测试环境不验证
if config.C.Env != "dev" {
currentTime := time.Now().Unix() * 1000
timestamp, err := strconv.ParseInt(receivedTimestamp, 10, 64)
fmt.Println(currentTime)
fmt.Println(timestamp)
if err != nil {
return errors.New("签名错误")
}