From 1a0575af644e9e9f51c69a02f1872cb21d431a39 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=20(#638)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- plugin/score/draw.go | 3 ++- plugin/score/model.go | 4 ++-- plugin/score/sign_in.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin/score/draw.go b/plugin/score/draw.go index 33ae9f3d..7a67d45b 100644 --- a/plugin/score/draw.go +++ b/plugin/score/draw.go @@ -9,13 +9,14 @@ import ( "strconv" "time" - "github.com/FloatTech/ZeroBot-Plugin/kanban/banner" "github.com/FloatTech/floatbox/file" "github.com/FloatTech/gg" "github.com/FloatTech/imgfactory" "github.com/FloatTech/zbputils/control" "github.com/FloatTech/zbputils/img/text" "github.com/disintegration/imaging" + + "github.com/FloatTech/ZeroBot-Plugin/kanban/banner" ) func drawScore16(a *scdata) (image.Image, error) { diff --git a/plugin/score/model.go b/plugin/score/model.go index 4c5ab6ef..e0e21d8a 100644 --- a/plugin/score/model.go +++ b/plugin/score/model.go @@ -128,8 +128,8 @@ type scdata struct { picfile string uid int64 nickname string - inc int //增加币 - score int //钱包 + inc int // 增加币 + score int // 钱包 level int rank int } diff --git a/plugin/score/sign_in.go b/plugin/score/sign_in.go index 44974dbe..49dd44ff 100644 --- a/plugin/score/sign_in.go +++ b/plugin/score/sign_in.go @@ -67,7 +67,7 @@ func init() { sdb = initialize(engine.DataFolder() + "score.db") }() engine.OnRegex(`^签到\s?(\d*)$`, initDef).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) { - //选择key + // 选择key var key string gid := ctx.Event.GroupID if gid < 0 {