From a8227453fc9ae6826e0f02ef1f74b75052783170 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 27 十二月 2021 11:43:59 +0800 Subject: [PATCH] update hutool 5.7.17 => 5.7.18 bugfix update redisson 3.16.6 => 3.16.7 bugfix --- ruoyi-oss/src/main/java/com/ruoyi/oss/factory/OssFactory.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ruoyi-oss/src/main/java/com/ruoyi/oss/factory/OssFactory.java b/ruoyi-oss/src/main/java/com/ruoyi/oss/factory/OssFactory.java index 56ea522..1691596 100644 --- a/ruoyi-oss/src/main/java/com/ruoyi/oss/factory/OssFactory.java +++ b/ruoyi-oss/src/main/java/com/ruoyi/oss/factory/OssFactory.java @@ -33,9 +33,12 @@ */ public static void init() { log.info("鍒濆鍖朞SS宸ュ巶"); - RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, msg -> { - refreshService(msg); - log.info("璁㈤槄鍒锋柊OSS閰嶇疆 => " + msg); + RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, type -> { + // 娌℃湁鐨勫疄渚嬩笉澶勭悊 + if (SERVICES.containsKey(type)) { + refreshService(type); + log.info("璁㈤槄鍒锋柊OSS閰嶇疆 => " + type); + } }); } -- Gitblit v1.9.3