1
This commit is contained in:
@@ -489,6 +489,7 @@ public class OpenPhoneForwardService {
|
|||||||
if (BOT_SLOW_OPEN.equals(bot)) {
|
if (BOT_SLOW_OPEN.equals(bot)) {
|
||||||
reply = filterQingBaoAdLines(reply);
|
reply = filterQingBaoAdLines(reply);
|
||||||
}
|
}
|
||||||
|
reply = stripReplyAsterisks(reply);
|
||||||
recordSuccess();
|
recordSuccess();
|
||||||
return reply;
|
return reply;
|
||||||
} finally {
|
} 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。 */
|
/** 将固定广告段(Markdown 与纯文本)替换为空格后 trim。 */
|
||||||
private static String filterQingBaoAdLines(String reply) {
|
private static String filterQingBaoAdLines(String reply) {
|
||||||
String s = reply;
|
String s = reply;
|
||||||
|
|||||||
Reference in New Issue
Block a user