From d177a57ee26eb9b2b99c30f28046744e1e192d5b Mon Sep 17 00:00:00 2001 From: vatebur Date: Thu, 8 Aug 2024 09:27:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(mcfish):=20=E5=87=BA=E5=94=AE=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=9E=83=E5=9C=BE=E5=8A=9F=E8=83=BD=E4=B8=8D=E7=BB=99?= =?UTF-8?q?=E9=92=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 出售所有垃圾没有对钱包金额进行更新 --- plugin/mcfish/store.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/mcfish/store.go b/plugin/mcfish/store.go index 223623765ea..8ce005e1d09 100644 --- a/plugin/mcfish/store.go +++ b/plugin/mcfish/store.go @@ -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) {