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)