Compare commits

...

2 Commits

Author SHA1 Message Date
by 45a5dd6852 获奖记录 删除测试代码 2024-07-31 11:18:39 +08:00
by db01ddcb0d 获奖记录修改 2024-07-31 11:16:36 +08:00
2 changed files with 0 additions and 27 deletions

View File

@ -2896,30 +2896,6 @@ func CSAwardLog(s *netlib.Session, packetId int, data interface{}, sid int64) er
if p == nil { if p == nil {
return 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) msg, ok := data.(*player_proto.CS_AwardLog)
if !ok { if !ok {
return nil return nil

View File

@ -54,8 +54,6 @@ func (this *AwardLogManager) UpdateAwardLog(plt string, itemId int32, num int64)
if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective || if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective ||
srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeChange { srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeChange {
typeId := int32(1) typeId := int32(1)
aaa := srvdata.GameItemMgr.Get(plt, itemId).Type
logger.Logger.Trace("--------------------", aaa)
if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective { if srvdata.GameItemMgr.Get(plt, itemId).Type == common.ItemTypeObjective {
typeId = 2 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] = make(map[int32]int64)
} }
this.AwardMap[plt][typeId][itemId] += num this.AwardMap[plt][typeId][itemId] += num
this.Save()
} }
} }