From b18e29b44bdf3716e7ceeb9656cfcbc73e2be770 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Fri, 16 May 2025 23:13:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=BB=91=E5=AE=9ASS?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E6=A3=80=E6=9F=A5=E4=BB=A5=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E6=9B=B4=E5=8F=8B=E5=A5=BD=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/scoresaber/score.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/handler/scoresaber/score.go b/handler/scoresaber/score.go index aa0620c..e0e31ae 100644 --- a/handler/scoresaber/score.go +++ b/handler/scoresaber/score.go @@ -261,8 +261,15 @@ func getMySSPic(msg model.Message) (reply *model.Reply) { } func bindSS(msg model.Message) (reply *model.Reply) { + if len(msg.RawMsg) > len("绑定ss ") { + return &model.Reply{ + ReplyMsg: scoresaber.SSQuery.BindSS(strconv.Itoa(int(msg.UserId)), msg.RawMsg[len("绑定ss "):]), + ReferOriginMsg: true, + FromMsg: msg, + } + } return &model.Reply{ - ReplyMsg: scoresaber.SSQuery.BindSS(strconv.Itoa(int(msg.UserId)), msg.RawMsg[len("绑定ss "):]), + ReplyMsg: "请输入您的scoresaber主页链接的末尾数字部分", ReferOriginMsg: true, FromMsg: msg, }