系统赠送统计重复
This commit is contained in:
parent
28022634a6
commit
fc05bd3ee5
|
@ -1122,17 +1122,19 @@ func (this *Player) GetMessageAttach(id string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if tp != -1 {
|
if tp != -1 {
|
||||||
giveType := gainWay
|
giveType := int32(-1)
|
||||||
switch gainWay {
|
switch gainWay {
|
||||||
case common.GainWayItemPermitRank:
|
case common.GainWayItemPermitRank:
|
||||||
giveType = model.SystemFreeGive_GiveType_TaskPermitRank
|
giveType = model.SystemFreeGive_GiveType_TaskPermitRank
|
||||||
case common.GainWayClientUpgrade:
|
case common.GainWayClientUpgrade:
|
||||||
giveType = model.SystemFreeGive_ClientUpgrade
|
giveType = model.SystemFreeGive_ClientUpgrade
|
||||||
}
|
}
|
||||||
|
if giveType != -1 && msg.Oper == 0 && !this.IsRob {
|
||||||
mq.Write(model.GenerateSystemFreeGive(this.SnId, this.Name, this.Platform, this.Channel,
|
mq.Write(model.GenerateSystemFreeGive(this.SnId, this.Name, this.Platform, this.Channel,
|
||||||
giveType, tp, msg.Params[i+1]))
|
giveType, tp, msg.Params[i+1]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
BagMgrSingleton.AddItems(&model.AddItemParam{
|
BagMgrSingleton.AddItems(&model.AddItemParam{
|
||||||
Platform: this.Platform,
|
Platform: this.Platform,
|
||||||
SnId: this.SnId,
|
SnId: this.SnId,
|
||||||
|
|
Loading…
Reference in New Issue