KKSU
2024-02-26 5416c6ab09efbd9fc0b0c2846b05e580f7869d48
src/main/java/cc/mrbird/febs/common/interceptor/LoginInterceptor.java
@@ -37,7 +37,9 @@
            return false;
        }
        String token = resolveToken(headerToken);
//        String token = resolveToken(headerToken);
        RSA rsa = new RSA(AppContants.PRIVATE_KEY, null);
        String token = rsa.decryptStr(headerToken, KeyType.PrivateKey);
        if (token == null || AppContants.TIME_OUT.equals(token)) {
            responseUnAuth(response);
@@ -87,11 +89,12 @@
    }
    private Boolean verifyTokenExpired(Long time) {
        boolean isDebug = false;
        boolean isDebug = true;
        if (!isDebug) {
            long currentTime = System.currentTimeMillis();
            return currentTime - time <= 30000;
        }
        return true;
    }
}