From 5b7c787b31e7119d09266819e12c7ad6a1eb7cf7 Mon Sep 17 00:00:00 2001 From: JackyTang <jackytang01@gmail.com> Date: 星期四, 20 四月 2023 10:49:29 +0800 Subject: [PATCH] update 使用instanceof模式匹配, 减少二次转换 --- ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java index f81aacb..fc6f6df 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java @@ -17,6 +17,7 @@ private final OssService ossService; + @Override public String translation(Object key, String other) { if (key instanceof String ids) { return ossService.selectUrlByIds(ids); -- Gitblit v1.9.3