From 342d2fde1fce3597860224fa6abd4f4d23c88f7f Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Sat, 26 Oct 2024 10:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=BD=E5=A5=96=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/constant.go | 1 + worldsrv/player.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/common/constant.go b/common/constant.go index 95de3f4..1aa0765 100644 --- a/common/constant.go +++ b/common/constant.go @@ -321,6 +321,7 @@ const ( GainWayItemBagChangeDollRevocation = 113 //娃娃兑换后台撤销 GainWayPermitReset = 114 //赛季通行证积分重置 GainWayClientUpgrade = 115 //客户端升级奖励 + GainWayLottery = 116 //开奖码抽奖 ) // 后台选择 金币变化类型 的充值 类型id号起始 diff --git a/worldsrv/player.go b/worldsrv/player.go index fbbd880..0d8caa5 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -1208,6 +1208,10 @@ func (this *Player) GetMessageAttach(id string) { remark = "客户端升级奖励" gainWay = common.GainWayClientUpgrade addItem() + case model.MSGTYPE_Lottery: + remark = "竞技管抽奖" + gainWay = common.GainWayLottery + addItem() } if msg.Coin > 0 { this.AddCoin(msg.Coin, 0, gainWay, msg.Id.Hex(), remark)