From a258676c8d8d6a30e797528b1cab106a72c08590 Mon Sep 17 00:00:00 2001 From: zhenggm Date: Thu, 8 Sep 2022 18:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=EF=BC=9A=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=99=A8=E8=B0=83=E6=95=B4=EF=BC=8C=E7=BB=9F=E4=B8=80=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=A4=84=E7=90=86=EF=BC=8C=E9=98=B2=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8C=87=E7=BA=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cc/smtweb/framework/core/session/SessionUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java b/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java index 91b02d2..13f5340 100644 --- a/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java +++ b/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/SessionUtil.java @@ -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());