From d0f388e46ba7874248974b73d3107a9c9d4ceffe Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 10 Jul 2024 16:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E9=87=91=E9=A2=9D=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/player.go | 2 +- worldsrv/trascate_webapi.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldsrv/player.go b/worldsrv/player.go index 9150e1c..f9dad6a 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -3928,7 +3928,7 @@ func (this *Player) GetPayGoodsInfo() { this.AddDiamond(int64(info.Amount[1]), 0, info.GainWay, "Callback_login", info.Remark) } this.AddMoneyPayTotal(int64(info.ConsumeNum)) - this.MoneyTotal += int64(info.ConsumeNum) + this.MoneyTotal += int64(info.ConsumeTypeNum) if info.ItemInfo != nil { for _, v := range info.ItemInfo { items = append(items, &Item{ItemId: v.ItemId, ItemNum: v.ItemNum}) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 5f9989d..7eba2e7 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -3444,7 +3444,7 @@ func init() { player.AddDiamond(int64(info.Amount[1]), 0, info.GainWay, "Callback", info.Remark) } player.AddMoneyPayTotal(int64(info.ConsumeNum)) - player.MoneyTotal += int64(info.ConsumeNum) + player.MoneyTotal += int64(info.ConsumeTypeNum) player.dirty = true player.SendDiffData() info.Amount[2] = player.GetVIPExpByPay(info.ConsumeNum)