From beaf3efdf50dafad9404db30755cee4e7efcb8dc Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 13 七月 2023 19:28:08 +0800
Subject: [PATCH] update 优化 powerjob 端口随着主应用端口飘逸 避免集群冲突

---
 ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java b/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
index 911d9a8..6503eb1 100644
--- a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
+++ b/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
@@ -51,13 +51,13 @@
         if (client == null) {
             CLIENT_CACHE.put(key, new OssClient(configKey, properties));
             log.info("鍒涘缓OSS瀹炰緥 key => {}", configKey);
-            return CLIENT_CACHE.get(configKey);
+            return CLIENT_CACHE.get(key);
         }
         // 閰嶇疆涓嶇浉鍚屽垯閲嶆柊鏋勫缓
         if (!client.checkPropertiesSame(properties)) {
             CLIENT_CACHE.put(key, new OssClient(configKey, properties));
             log.info("閲嶈浇OSS瀹炰緥 key => {}", configKey);
-            return CLIENT_CACHE.get(configKey);
+            return CLIENT_CACHE.get(key);
         }
         return client;
     }

--
Gitblit v1.9.3