puzhibing
2024-08-24 1bcd8243e5ae8a07f73b49b3f4c5458c6b53bf9e
ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/AuthFilter.java
@@ -155,7 +155,7 @@
            Long old_timestamp = Long.valueOf(o.toString());
            Long new_timestamp = Long.valueOf(timestamp);
            //两个请求时间差小于1秒,判定为重复提交
            if((new_timestamp - old_timestamp) <= 1000){
            if((new_timestamp - old_timestamp) <= 500){
               throw new RuntimeException("重复提交");
            }else{
               cacheMap.put(url, timestamp);