Compare commits

..

No commits in common. "bd531df9a320ec371602aa6364066b0512b2cf7b" and "7066908dfd141ca541b4a64bd205518c1d379a6c" have entirely different histories.

3 changed files with 17 additions and 46 deletions

View File

@ -322,7 +322,6 @@ const (
GainWayPermitReset = 114 //赛季通行证积分重置
GainWayClientUpgrade = 115 //客户端升级奖励
GainWayLottery = 116 //开奖码抽奖
GainWayGuide2 = 117 // 竞技馆引导奖励
)
// 后台选择 金币变化类型 的充值 类型id号起始
@ -882,14 +881,3 @@ const (
const (
NoticeTypeCustomAward = 1 + iota // 房卡场获奖通知
)
const (
GuideIdNewPlayer = 1 // 新手引导
GuideIdCustom = 2 // 竞技馆引导
)
// 引导奖励账变类型
var GuideIdToGainWay = map[int]int{
GuideIdNewPlayer: GainWayGuide,
GuideIdCustom: GainWayGuide2,
}

View File

@ -111,7 +111,6 @@ const (
SystemFreeGive_CollectBox // 开启卡片礼盒奖励
SystemFreeGive_CollectBoxSwap // 卡片礼盒兑换奖励
SystemFreeGive_ClientUpgrade // 客户端升级奖励
SystemFreeGive_Guide // 新手引导奖励
)
const (
SystemFreeGive_CoinType_Coin int32 = iota //金币

View File

@ -3112,7 +3112,6 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
}
// 日志
if pack.OpRetCode == player_proto.OpResultCode_OPRC_Sucess {
if msg.GetGuideId() == 0 || msg.GetGuideId() == common.GuideIdNewPlayer {
switch msg.GetTp() {
case common.AttributeGuideStep, common.AttributeGuideSkip:
d := model.CustomData{
@ -3132,7 +3131,6 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
}
}
}
}
if msg.GuideId == 0 {
return nil
}
@ -3159,7 +3157,7 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
send()
return nil
}
if msg.GuideId == common.GuideIdNewPlayer {
if msg.GuideId == 1 {
if p.GuideStep < 0 {
return nil
}
@ -3218,26 +3216,12 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
ItemId: award.ItemId,
ItemNum: award.ItemNum,
})
// 系统赠送
if award.GetItemId() == common.ItemIDCoin {
mq.Write(model.GenerateSystemFreeGive(p.SnId, p.Name, p.Platform, p.Channel, model.SystemFreeGive_Guide, 0, award.GetItemNum()))
}
if award.GetItemId() == common.ItemIDDiamond {
mq.Write(model.GenerateSystemFreeGive(p.SnId, p.Name, p.Platform, p.Channel, model.SystemFreeGive_Guide, 1, award.GetItemNum()))
}
}
gainWay := common.GainWayGuide
gain := common.GuideIdToGainWay[int(msg.GetGuideId())]
if gain > 0 {
gainWay = gain
}
BagMgrSingleton.AddItems(&model.AddItemParam{
Platform: p.Platform,
SnId: p.SnId,
Change: items,
GainWay: int32(gainWay),
GainWay: common.GainWayGuide,
Operator: "system",
Remark: "完成引导奖励",
})