系统赠送统计重复

This commit is contained in:
sk 2024-10-15 08:57:04 +08:00
parent 28022634a6
commit fc05bd3ee5
1 changed files with 5 additions and 3 deletions

View File

@ -1122,15 +1122,17 @@ func (this *Player) GetMessageAttach(id string) {
}
if tp != -1 {
giveType := gainWay
giveType := int32(-1)
switch gainWay {
case common.GainWayItemPermitRank:
giveType = model.SystemFreeGive_GiveType_TaskPermitRank
case common.GainWayClientUpgrade:
giveType = model.SystemFreeGive_ClientUpgrade
}
mq.Write(model.GenerateSystemFreeGive(this.SnId, this.Name, this.Platform, this.Channel,
giveType, tp, msg.Params[i+1]))
if giveType != -1 && msg.Oper == 0 && !this.IsRob {
mq.Write(model.GenerateSystemFreeGive(this.SnId, this.Name, this.Platform, this.Channel,
giveType, tp, msg.Params[i+1]))
}
}
}
BagMgrSingleton.AddItems(&model.AddItemParam{