xiaoyong931011
2023-08-15 84c7afc62bb1eb6f5d80d2d9928d0d11a1ffbdda
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;
    }
}