From 68a9ecf9950c59b1ad8859318d70e520baab6f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E9=85=B1?= <51711558+nekohouse09@users.noreply.github.com> Date: Thu, 3 Nov 2022 22:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=A4=E5=A4=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E6=96=87=E6=A1=88=20(#481)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/score/sign_in.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/score/sign_in.go b/plugin/score/sign_in.go index 412782ad2b..43dc9a7be3 100644 --- a/plugin/score/sign_in.go +++ b/plugin/score/sign_in.go @@ -58,7 +58,7 @@ func init() { money := wallet.GetWalletOf(uid) ctx.SendChain(message.At(uid), message.Text("你的钱包当前有", money, "ATRI币")) }) - engine.OnFullMatch("2签到").Limit(ctxext.LimitByUser).SetBlock(true). + engine.OnFullMatch("签到").Limit(ctxext.LimitByUser).SetBlock(true). Handle(func(ctx *zero.Ctx) { uid := ctx.Event.UserID now := time.Now() @@ -78,7 +78,7 @@ func init() { } return case siUpdateTimeStr != today: - // 如果是夸天签到就请数据 + // 如果是跨天签到就清数据 err := sdb.InsertOrUpdateSignInCountByUID(uid, 0) if err != nil { ctx.SendChain(message.Text("ERROR: ", err)) @@ -95,7 +95,7 @@ func init() { level := sdb.GetScoreByUID(uid).Score + 1 if level > SCOREMAX { level = SCOREMAX - ctx.SendChain(message.At(uid), message.Text("你的登记已经达到上限")) + ctx.SendChain(message.At(uid), message.Text("你的等级已经达到上限")) } err = sdb.InsertOrUpdateScoreByUID(uid, level) if err != nil {