Skip to content

Commit 33a5d0a

Browse files
committed
fix(mcfish): 出售所有垃圾功能不给钱
出售所有垃圾没有对钱包金额进行更新
1 parent 89d66f3 commit 33a5d0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/mcfish/store.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,11 @@ func init() {
375375
return
376376
}
377377
}
378+
err = wallet.InsertWalletOf(uid, pice)
379+
if err != nil {
380+
ctx.SendChain(message.Text("[ERROR,出售垃圾失败,回收站卷款跑路了]:", err))
381+
return
382+
}
378383
ctx.Send(message.ReplyWithMessage(ctx.Event.MessageID, message.Text("出售成功,你赚到了", pice, msg)))
379384
})
380385
engine.OnRegex(`^购买(`+strings.Join(thingList, "|")+`)\s*(\d*)$`, getdb, refreshFish).SetBlock(true).Limit(limitSet).Handle(func(ctx *zero.Ctx) {

0 commit comments

Comments
 (0)