This commit is contained in:
Leo
2025-11-09 16:00:45 +08:00
parent 10020e6d52
commit 00149dc198

View File

@@ -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*立减", ""); // 匹配"咨询客服立减""咨询 客服 立减"等