From dda33478829592be6eea4c78b6519142a9dd93bb Mon Sep 17 00:00:00 2001
From: hjl <1657978663@qq.com>
Date: 星期三, 26 六月 2024 18:20:19 +0800
Subject: [PATCH] fix: 学习端bug

---
 ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
index 1d2510e..1258c10 100644
--- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
+++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
@@ -2,15 +2,14 @@
 
 /**
  * 缓存常量信息
- * 
+ *
  * @author ruoyi
  */
-public class CacheConstants
-{
+public class CacheConstants {
     /**
-     * 缓存有效期,默认720(分钟)
+     * 缓存有效期,默认720(分钟)一周
      */
-    public final static long EXPIRATION = 720;
+    public final static long EXPIRATION = 10080;
 
     /**
      * 缓存刷新时间,默认120(分钟)
@@ -33,6 +32,11 @@
     public final static String LOGIN_TOKEN_KEY = "login_tokens:";
 
     /**
+     * 学习端权限缓存前缀
+     */
+    public final static String LOGIN_TOKEN_KEY_STUDY = "login_tokens_study:";
+
+    /**
      * 验证码 redis key
      */
     public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

--
Gitblit v1.7.1