Skip to content

Commit

Permalink
fix(mcfish): 出售所有垃圾功能不给钱
Browse files Browse the repository at this point in the history
出售所有垃圾没有对钱包金额进行更新
  • Loading branch information
vatebur committed Aug 8, 2024
1 parent 89d66f3 commit d177a57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/mcfish/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ func init() {
return
}
}
err = wallet.InsertWalletOf(uid, pice)
if err != nil {
ctx.SendChain(message.Text("[ERROR at store.go.10]:", err))
return
}
ctx.Send(message.ReplyWithMessage(ctx.Event.MessageID, message.Text("出售成功,你赚到了", pice, msg)))
})
engine.OnRegex(`^购买(`+strings.Join(thingList, "|")+`)\s*(\d*)$`, getdb, refreshFish).SetBlock(true).Limit(limitSet).Handle(func(ctx *zero.Ctx) {
Expand Down

0 comments on commit d177a57

Please sign in to comment.