xiaoyong931011
2023-08-18 15a6f5b0a38f0cd19c777c75c3fc4ff498fbc8dc
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;
    }
}