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)