feat:验签改为秒
This commit is contained in:
@@ -221,7 +221,7 @@ public class OpenApiValidateFilter implements Filter {
|
||||
return;
|
||||
}
|
||||
|
||||
long timestamp = Long.parseLong(timestampStr) / 1000;
|
||||
long timestamp = Long.parseLong(timestampStr);
|
||||
long currentTime = System.currentTimeMillis() / 1000;
|
||||
long timeDiff = Math.abs(currentTime - timestamp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user