Skip to content

Commit

Permalink
chore(lint): 改进代码样式 (#955)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Aug 19, 2024
1 parent fa02189 commit 47f176a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 0 additions & 4 deletions plugin/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func init() {
return
}
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("钱包余额修改成功,已修改用户:", uidStr, "的钱包,修改金额为:", amount))

})

// 保留用户习惯,兼容旧语法“查看我的钱包”
Expand All @@ -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))

// 捕获修改的金额
Expand Down Expand Up @@ -255,7 +253,5 @@ func init() {
return
}
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("转账成功:成功给"), message.At(uidInt), message.Text(",转账:", amount, wallet.GetWalletName()))

})

}

0 comments on commit 47f176a

Please sign in to comment.