diff --git a/plugin/score/sign_in.go b/plugin/score/sign_in.go index d28d557b06..13fc9d42b6 100644 --- a/plugin/score/sign_in.go +++ b/plugin/score/sign_in.go @@ -139,13 +139,11 @@ func init() { // 更新钱包 rank := getrank(level) add := 1 + rand.Intn(10) + rank*5 // 等级越高获得的钱越高 - go func() { - err = wallet.InsertWalletOf(uid, add) - if err != nil { - ctx.SendChain(message.Text("ERROR: ", err)) - return - } - }() + err = wallet.InsertWalletOf(uid, add) + if err != nil { + ctx.SendChain(message.Text("ERROR: ", err)) + return + } alldata := &scdata{ drawedfile: drawedFile, picfile: picFile,