From 5e1d4f215de63903645f7c3f4fd85c13b4f9cdb8 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 19 十一月 2021 13:06:51 +0800
Subject: [PATCH] fix 修复关闭 xss 功能导致可重复读 RepeatableFilter 失效

---
 ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java
index f24d0e8..a52a681 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java
@@ -36,9 +36,8 @@
      * @return dictDatas 瀛楀吀鏁版嵁鍒楄〃
      */
     public static List<SysDictData> getDictCache(String key) {
-        Object cacheObj = RedisUtils.getCacheObject(getCacheKey(key));
-        if (StringUtils.isNotNull(cacheObj)) {
-            List<SysDictData> dictDatas = (List<SysDictData>) cacheObj;
+        List<SysDictData> dictDatas = RedisUtils.getCacheObject(getCacheKey(key));
+        if (StringUtils.isNotNull(dictDatas)) {
             return dictDatas;
         }
         return null;

--
Gitblit v1.9.3