fix(score): 签到图片余额为0(#978) (#979)

This commit is contained in:
vatebur 2024-09-26 15:25:46 +08:00 committed by GitHub
parent 13ef54ef62
commit 7d5c770398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,