## 防重复校验注释改为使用秒为时间单位判断;
This commit is contained in:
parent
afbedc04c1
commit
a7cf25a210
|
@ -23,11 +23,7 @@ import java.util.Map;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 防止表单重复提交处理
|
* 防止表单重复提交处理
|
||||||
* @Author: jiang chao
|
|
||||||
* @Time: 2023/6/15 9:24
|
|
||||||
* @Classname: RepeatSubmitOldAspectAdvice
|
|
||||||
* @PackageName: com.hzs.common.core.aspect
|
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Aspect
|
@Aspect
|
||||||
|
@ -67,7 +63,7 @@ public class RepeatSubmitSimpleAspectAdvice {
|
||||||
|
|
||||||
Map<String, Object> nowDataMap = new HashMap<>();
|
Map<String, Object> nowDataMap = new HashMap<>();
|
||||||
nowDataMap.put(REPEAT_PARAMS, nowParams);
|
nowDataMap.put(REPEAT_PARAMS, nowParams);
|
||||||
nowDataMap.put(REPEAT_TIME, System.currentTimeMillis());
|
nowDataMap.put(REPEAT_TIME, System.currentTimeMillis() / 1000);
|
||||||
|
|
||||||
// 请求地址(作为存放cache的key值)
|
// 请求地址(作为存放cache的key值)
|
||||||
String url = request.getRequestURI();
|
String url = request.getRequestURI();
|
||||||
|
|
Loading…
Reference in New Issue