|
|
@@ -146,16 +146,6 @@ public class SessionUtil { |
|
|
|
throw new BizException(SwConsts.ErrorCode.NO_LOGIN); |
|
|
|
} |
|
|
|
|
|
|
|
//校验是否登录 |
|
|
|
private static void checkLogin(HttpServletRequest request) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private static AtomicInteger getFingerVal(String id, String tokenkey) {//取并+1 |
|
|
|
SessionCache cache = SessionCacheFactory.getInstance().getCache(KEY_PARAM_FP_KEY, 1200L); |
|
|
|
return cache.get(id + "_" + tokenkey); |
|
|
|
} |
|
|
|
|
|
|
|
public static void checkSession(HttpServletRequest request) { |
|
|
|
//校验登录 |
|
|
|
String lasturi = getUriLast(request.getContextPath(), request.getServletPath()); |
|
|
@@ -202,6 +192,7 @@ public class SessionUtil { |
|
|
|
if (ai == null) { |
|
|
|
cache.put(fpKey + "_" + fpk, new AtomicInteger(0)); |
|
|
|
} |
|
|
|
r.put(KEY_PARAM_FP_KEY, fpk); |
|
|
|
r.put(KEY_PARAM_FP_VAL, ai.getAndIncrement()); |
|
|
|
} |
|
|
|
} |
|
|
|