Browse Source

系统:拦截器调整,统一异常处理,防重复提交指纹

4.0
郑根木 2 years ago
parent
commit
a258676c8d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java

+ 2
- 1
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java View File

@@ -191,7 +191,8 @@ public class SessionUtil {

AtomicInteger ai = cache.get(fpKey + "_" + fpk);
if (ai == null) {
cache.put(fpKey + "_" + fpk, new AtomicInteger(0));
ai = new AtomicInteger(0);
cache.put(fpKey + "_" + fpk, ai);
}
r.put(KEY_PARAM_FP_KEY, fpk);
r.put(KEY_PARAM_FP_VAL, ai.getAndIncrement());


Loading…
Cancel
Save