From 57c58b2fb28592919e228d817811be6926266996 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 20 Sep 2024 16:53:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dv=E5=8D=A1=E6=8E=89?= =?UTF-8?q?=E8=90=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/base/scene.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gamesrv/base/scene.go b/gamesrv/base/scene.go index 87a3d78..809853c 100644 --- a/gamesrv/base/scene.go +++ b/gamesrv/base/scene.go @@ -1993,8 +1993,13 @@ func (this *Scene) TryBillExGameDrop(p *Player) { itemData := srvdata.GameItemMgr.Get(p.Platform, id) if itemData != nil { p.AddItems(&model.AddItemParam{ - P: p.PlayerData, - Change: nil, + P: p.PlayerData, + Change: []*model.Item{ + { + ItemId: id, + ItemNum: int64(num), + }, + }, GainWay: common.GainWay_Game, Operator: "system", Remark: fmt.Sprintf("游戏掉落%v", id), From 2743f6cfb0bb9dfbdb28139532317331b53e57a0 Mon Sep 17 00:00:00 2001 From: kxdd Date: Sat, 21 Sep 2024 11:51:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A8=83=E5=A8=83=E5=8D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=B7=BB=E5=8A=A0=E6=B8=A0=E9=81=93=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/clawdoll/scenepolicy_clawdoll.go | 1 + model/gamelogtype.go | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gamesrv/clawdoll/scenepolicy_clawdoll.go b/gamesrv/clawdoll/scenepolicy_clawdoll.go index e3d78a0..af8227e 100644 --- a/gamesrv/clawdoll/scenepolicy_clawdoll.go +++ b/gamesrv/clawdoll/scenepolicy_clawdoll.go @@ -767,6 +767,7 @@ func (this *StateBilled) OnEnter(s *base.Scene) { LogBaseResult.BeforeClawdollItemNum = curClawdollItemNum + int64(machineInfo.CostItemNum) LogBaseResult.AfterClawdollItemNum = curClawdollItemNum LogBaseResult.IsWin = playerEx.IsWin + LogBaseResult.Channel = playerEx.Channel if !playerEx.IsRob { sceneEx.logid, _ = model.AutoIncGameLogId() diff --git a/model/gamelogtype.go b/model/gamelogtype.go index 7593fd2..1796e7d 100644 --- a/model/gamelogtype.go +++ b/model/gamelogtype.go @@ -1683,9 +1683,10 @@ type SamLocPerson struct { // 娃娃机 每局记录 type ClawdollResultType struct { //all - RoomId int32 //房间Id - PlayerSnid int32 //玩家id - BeforeClawdollItemNum int64 //变化前娃娃币 - AfterClawdollItemNum int64 //变化后娃娃币 - IsWin bool //是否成功 + RoomId int32 //房间Id + PlayerSnid int32 //玩家id + BeforeClawdollItemNum int64 //变化前娃娃币 + AfterClawdollItemNum int64 //变化后娃娃币 + IsWin bool //是否成功 + Channel string //渠道 }