This commit is contained in:
van
2026-05-11 17:37:21 +08:00
parent 37f7169147
commit 78610826a3

View File

@@ -489,6 +489,7 @@ public class OpenPhoneForwardService {
if (BOT_SLOW_OPEN.equals(bot)) {
reply = filterQingBaoAdLines(reply);
}
reply = stripReplyAsterisks(reply);
recordSuccess();
return reply;
} finally {
@@ -507,6 +508,14 @@ public class OpenPhoneForwardService {
}
}
/** 去掉 Telegram 回复里常用 Markdown 星号,便于企微纯文本展示 */
private static String stripReplyAsterisks(String reply) {
if (reply == null) {
return null;
}
return reply.replace("*", "");
}
/** 将固定广告段Markdown 与纯文本)替换为空格后 trim。 */
private static String filterQingBaoAdLines(String reply) {
String s = reply;