Skip to content

Commit

Permalink
fix(score): 签到图片余额为0(#978) (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
vatebur authored Sep 26, 2024
1 parent 13ef54e commit 7d5c770
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions plugin/score/sign_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7d5c770

Please sign in to comment.