Compare commits

..

No commits in common. "6071106264e05a2720f340a15ef2a96962e3cbe5" and "85d1456623f66172dada1316129cd92035a82eff" have entirely different histories.

1 changed files with 3 additions and 5 deletions

View File

@ -1122,17 +1122,15 @@ func (this *Player) GetMessageAttach(id string) {
} }
if tp != -1 { if tp != -1 {
giveType := int32(-1) giveType := gainWay
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{