Compare commits
No commits in common. "6071106264e05a2720f340a15ef2a96962e3cbe5" and "85d1456623f66172dada1316129cd92035a82eff" have entirely different histories.
6071106264
...
85d1456623
|
@ -1122,19 +1122,17 @@ func (this *Player) GetMessageAttach(id string) {
|
|||
}
|
||||
|
||||
if tp != -1 {
|
||||
giveType := int32(-1)
|
||||
giveType := gainWay
|
||||
switch gainWay {
|
||||
case common.GainWayItemPermitRank:
|
||||
giveType = model.SystemFreeGive_GiveType_TaskPermitRank
|
||||
case common.GainWayClientUpgrade:
|
||||
giveType = model.SystemFreeGive_ClientUpgrade
|
||||
}
|
||||
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{
|
||||
Platform: this.Platform,
|
||||
SnId: this.SnId,
|
||||
|
|
Loading…
Reference in New Issue