微信恢复优化

This commit is contained in:
Evan 2022-12-13 17:11:34 +09:00
parent c11cc18ab5
commit 225af04ed8

View File

@ -65,7 +65,7 @@ func (gmh *GroupMessageHandler) ReplyText(msg *openwechat.Message) error {
result = strings.Replace(result, "", "", -1)
}
// 微信不支持markdown格式所以把反引号直接去掉
if strings.HasPrefix(result, "`") {
if strings.Contains(result, "`") {
result = strings.Replace(result, "`", "", -1)
}