修复抽奖奖励邮件

This commit is contained in:
sk 2024-10-26 10:31:53 +08:00
parent 7e80a3d37b
commit 342d2fde1f
2 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,7 @@ const (
GainWayItemBagChangeDollRevocation = 113 //娃娃兑换后台撤销
GainWayPermitReset = 114 //赛季通行证积分重置
GainWayClientUpgrade = 115 //客户端升级奖励
GainWayLottery = 116 //开奖码抽奖
)
// 后台选择 金币变化类型 的充值 类型id号起始

View File

@ -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)