系统赠送统计重复
This commit is contained in:
parent
28022634a6
commit
fc05bd3ee5
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue