From 47f176a56eb2f39e4942b33c3760f2671a895894 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 19:54:08 +0800 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E6=94=B9=E8=BF=9B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=20(#955)?= 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> --- main.go | 2 +- plugin/wallet/wallet.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index d21599c505..2a89745136 100644 --- a/main.go +++ b/main.go @@ -308,7 +308,7 @@ func init() { func main() { if !strings.Contains(runtime.Version(), "go1.2") { // go1.20之前版本需要全局 seed,其他插件无需再 seed - rand.Seed(time.Now().UnixNano()) //nolint: staticcheck + rand.Seed(time.Now().UnixNano()) } // 帮助 zero.OnFullMatchGroup([]string{"help", "/help", ".help", "菜单"}, zero.OnlyToMe).SetBlock(true). diff --git a/plugin/wallet/wallet.go b/plugin/wallet/wallet.go index 319be7d7d2..20a358be04 100644 --- a/plugin/wallet/wallet.go +++ b/plugin/wallet/wallet.go @@ -187,7 +187,6 @@ func init() { return } ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("钱包余额修改成功,已修改用户:", uidStr, "的钱包,修改金额为:", amount)) - }) // 保留用户习惯,兼容旧语法“查看我的钱包” @@ -211,7 +210,6 @@ func init() { en.OnPrefix(`钱包转账`, zero.OnlyGroup).SetBlock(true).Limit(ctxext.LimitByGroup). Handle(func(ctx *zero.Ctx) { - param := strings.TrimSpace(ctx.State["args"].(string)) // 捕获修改的金额 @@ -255,7 +253,5 @@ func init() { return } ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("转账成功:成功给"), message.At(uidInt), message.Text(",转账:", amount, wallet.GetWalletName())) - }) - }