Compare commits
2 Commits
36cce9df01
...
45a5dd6852
Author | SHA1 | Date |
---|---|---|
|
45a5dd6852 | |
|
db01ddcb0d |
|
@ -2896,30 +2896,6 @@ func CSAwardLog(s *netlib.Session, packetId int, data interface{}, sid int64) er
|
|||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
var items []*Item
|
||||
item := &Item{
|
||||
ItemId: 30011,
|
||||
ItemNum: 1,
|
||||
}
|
||||
var cost []*model.ItemInfo
|
||||
items = append(items, item)
|
||||
item = &Item{
|
||||
ItemId: 77006,
|
||||
ItemNum: 1,
|
||||
}
|
||||
items = append(items, item)
|
||||
BagMgrSingleton.AddItemsV2(&ItemParam{
|
||||
P: p,
|
||||
Change: items,
|
||||
Cost: cost,
|
||||
Add: 0,
|
||||
GainWay: common.GainWaySign7Add,
|
||||
Operator: "system",
|
||||
Remark: "累计签到进阶奖励获得",
|
||||
gameId: 0,
|
||||
gameFreeId: 0,
|
||||
noLog: false,
|
||||
})
|
||||
msg, ok := data.(*player_proto.CS_AwardLog)
|
||||
if !ok {
|
||||
return nil
|
||||
|
|
|
@ -54,8 +54,6 @@ func (this *AwardLogManager) UpdateAwardLog(plt string, itemId int32, num int64)
|
|||
if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective ||
|
||||
srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeChange {
|
||||
typeId := int32(1)
|
||||
aaa := srvdata.GameItemMgr.Get(plt, itemId).Type
|
||||
logger.Logger.Trace("--------------------", aaa)
|
||||
if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective {
|
||||
typeId = 2
|
||||
}
|
||||
|
@ -66,7 +64,6 @@ func (this *AwardLogManager) UpdateAwardLog(plt string, itemId int32, num int64)
|
|||
this.AwardMap[plt][typeId] = make(map[int32]int64)
|
||||
}
|
||||
this.AwardMap[plt][typeId][itemId] += num
|
||||
this.Save()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue