From a4f4cadc93ade3af83450acaa32b355cc66048f5 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 21 七月 2025 13:57:59 +0800 Subject: [PATCH] 大屏接口替换 --- ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/MsgUtil.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/MsgUtil.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/MsgUtil.java index 14c12e1..b616ffc 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/MsgUtil.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/MsgUtil.java @@ -153,7 +153,11 @@ * @param chargeGun 桩编号 * @return */ + public static String faultMsg(String phone,String site,String chargeGun){ + // 去除特殊字符 比如.-/{(等等 + site = site.replaceAll("[\\p{P}+~$`^=|<>~`$^+=|<>¥×]", ""); + SubmitTempletReq submitReq = new SubmitTempletReq(); if(site.length()<=10){ String[] paramss = {site,chargeGun}; -- Gitblit v1.7.1