From 419cb06ff6985cbd051286b8e42ef97337517f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98=E6=AF=9B=E6=96=87=E6=98=A5=E2=80=99?= <739897791@qq.com> Date: Wed, 19 Jun 2024 13:53:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E5=A4=84=E7=90=86=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/tiesheng/core/util/CharacterUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springboot-web/src/main/java/com/tiesheng/core/util/CharacterUtils.java b/springboot-web/src/main/java/com/tiesheng/core/util/CharacterUtils.java index 39ea774..cf653b8 100644 --- a/springboot-web/src/main/java/com/tiesheng/core/util/CharacterUtils.java +++ b/springboot-web/src/main/java/com/tiesheng/core/util/CharacterUtils.java @@ -17,7 +17,7 @@ public class CharacterUtils { * * @param o 类 */ - private void removeSymbol(Object o) { + public static void removeSymbol(Object o) { removeSymbol(o, "\n|\r|\t| "); } @@ -27,7 +27,7 @@ public class CharacterUtils { * @param o 类 * @param searchStr 规则 */ - private void removeSymbol(Object o, String searchStr) { + public static void removeSymbol(Object o, String searchStr) { JSONObject object = JSONUtil.parseObj(o, false); for (Map.Entry entry : object) { if (ObjectUtil.isEmpty(entry.getValue()) || StrUtil.equals("null", String.valueOf(entry.getValue()))) {