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