From 9aa41d6d3f46d9067af7e8bd514c0eb401712aad Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Mon, 5 May 2025 03:42:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=81=BF=E5=85=8D=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E6=9D=A1=E6=96=87=E6=9C=AC=E8=A2=AB=E4=B8=A2=E5=BC=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/beatleader/beatleader.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/handler/beatleader/beatleader.go b/handler/beatleader/beatleader.go index 38ca0fc..98384c9 100644 --- a/handler/beatleader/beatleader.go +++ b/handler/beatleader/beatleader.go @@ -282,9 +282,7 @@ func getMyRecentScore(msg model.Message) (reply *model.Reply) { userName = record.Name recordCount++ } - if len(scoreMsg) > 0 { - scoreMsg = scoreMsg[:len(scoreMsg)-len("\n")] //去掉最后一个换行符 - } else { + if len(scoreMsg) <= 0 { return &model.Reply{ ReplyMsg: "无最近游戏记录", ReferOriginMsg: true,