diff --git a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/BatchPublishServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/BatchPublishServiceImpl.java index e81183a..766bb59 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/BatchPublishServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/BatchPublishServiceImpl.java @@ -98,7 +98,9 @@ private String cleanForbiddenPhrases(String text) { return text; } String cleaned = text; - + // 新增:清理【】符号(包括单独出现或成对出现的情况) + cleaned = cleaned.replaceAll("【", ""); // 移除左括号【 + cleaned = cleaned.replaceAll("】", ""); // 移除右括号】 // 新增:清理"咨询客服立减""咨询客服""客服"及变体(含空格) // 优先处理长组合,避免被拆分后遗漏 cleaned = cleaned.replaceAll("咨询\\s*客服\\s*立减", ""); // 匹配"咨询客服立减""咨询 客服 立减"等