From 3c49ade7b4abc220f9a7345b367126fd5b403c2a Mon Sep 17 00:00:00 2001 From: "yushun.ding" <2437588377@qq.com> Date: Sat, 25 Mar 2023 21:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E8=A1=A5=E5=85=85static?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/aiyh/utils/Util.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/aiyh/utils/Util.java b/src/main/java/aiyh/utils/Util.java index 62322df..12ad673 100644 --- a/src/main/java/aiyh/utils/Util.java +++ b/src/main/java/aiyh/utils/Util.java @@ -3878,8 +3878,8 @@ public class Util extends weaver.general.Util { * @param newName 新名字 * @param lanuage 要替换的语言 以 7 8 9 举例 */ - public String moreLanugageHandler(String oldName, String newName, String lanuage) { - List languageIds = weaver.general.Util.getActiveLanguageIds();//获取系统支持的多语言 + public static String moreLanugageHandler(String oldName, String newName, String lanuage) { + List languageIds = getActiveLanguageIds();//获取系统支持的多语言 String newMoreLanuage = ""; //要按照当前系统支持的多语言id进行拼接处理 if (oldName.startsWith("~`~`") && oldName.endsWith("`~`~")) { @@ -3888,13 +3888,13 @@ public class Util extends weaver.general.Util { //多语言的中间处理 String tempLanuage = joinLanuage(newName, languageIds); //中间处理转成map - Map splitMultilangData = weaver.general.Util.splitMultilangData(tempLanuage); + Map splitMultilangData = splitMultilangData(tempLanuage); Map lanuageMap = new HashMap<>(); for (Object id : languageIds) { String labelLanuage = "`~`" + id; if (oldName.contains(labelLanuage)) { //获取过滤的语言name - String formatLanuageName = weaver.general.Util.formatMultiLang(oldName, String.valueOf(id)); + String formatLanuageName = formatMultiLang(oldName, String.valueOf(id)); if (!weaver.general.StringUtil.isEmpty(formatLanuageName)) { lanuageMap.put(String.valueOf(id), formatLanuageName); } @@ -3911,7 +3911,7 @@ public class Util extends weaver.general.Util { splitMultilangData.put(entry.getKey(), entry.getValue()); } } - newMoreLanuage = weaver.general.Util.stitchMultilangData(splitMultilangData); + newMoreLanuage = stitchMultilangData(splitMultilangData); } else { //要根据系统支持的语言进行拼接 newMoreLanuage = joinLanuage(newName, languageIds); @@ -3926,7 +3926,7 @@ public class Util extends weaver.general.Util { * @param languageIds 系统支持的语言集合 * @return 拼接后的字符串 */ - public String joinLanuage(String newName, List languageIds) { + public static String joinLanuage(String newName, List languageIds) { StringBuilder supportLanuage = new StringBuilder(); supportLanuage.append("~`~`"); languageIds.forEach(id -> {