Compare commits
No commits in common. "32eb22f9568013d34ad4a3ec24ad1007efe5e38c" and "12e93f9750d2e4448a776f382912958cd6451ac9" have entirely different histories.
32eb22f956
...
12e93f9750
|
@ -2892,14 +2892,7 @@ func (this *Player) DoShopInfo(info *model.DbShop, isLogin bool) {
|
||||||
|
|
||||||
//钻石存储罐
|
//钻石存储罐
|
||||||
if info.PageId == ShopPageDiamondBank {
|
if info.PageId == ShopPageDiamondBank {
|
||||||
|
WelfareMgrSington.DiamondBankTakeCoin(this)
|
||||||
arrItems := WelfareMgrSington.DiamondBankTakeCoin(this)
|
|
||||||
for _, v := range arrItems {
|
|
||||||
itemInfo = append(itemInfo, &playerproto.PayItem{
|
|
||||||
ItemId: v.ItemId,
|
|
||||||
ItemNum: v.ItemNum,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 通行证
|
// 通行证
|
||||||
|
|
|
@ -1988,7 +1988,7 @@ func (this *WelfareMgr) DiamondBankGetInfo(p *Player) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DiamondBankTakeCoin 钻石存钱罐领取钻石
|
// DiamondBankTakeCoin 钻石存钱罐领取钻石
|
||||||
func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) (retItemArr []*model.Item) {
|
func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) {
|
||||||
pack := &welfare.SCDiamondBankTakeDiamond{
|
pack := &welfare.SCDiamondBankTakeDiamond{
|
||||||
OpRetCode: welfare.OpResultCode_OPRC_Error,
|
OpRetCode: welfare.OpResultCode_OPRC_Error,
|
||||||
}
|
}
|
||||||
|
@ -2034,13 +2034,7 @@ func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) (retItemArr []*model.Item
|
||||||
ItemId: int32(k),
|
ItemId: int32(k),
|
||||||
ItemNum: v,
|
ItemNum: v,
|
||||||
})
|
})
|
||||||
|
|
||||||
retItemArr = append(retItemArr, &model.Item{
|
|
||||||
ItemId: int32(k),
|
|
||||||
ItemNum: v,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BagMgrSingleton.AddItems(&model.AddItemParam{
|
BagMgrSingleton.AddItems(&model.AddItemParam{
|
||||||
Platform: p.Platform,
|
Platform: p.Platform,
|
||||||
SnId: p.SnId,
|
SnId: p.SnId,
|
||||||
|
@ -2075,8 +2069,6 @@ func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) (retItemArr []*model.Item
|
||||||
logger.Logger.Tracef("DiamondBankTakeCoin snid: %v pack: %v", p.SnId, pack)
|
logger.Logger.Tracef("DiamondBankTakeCoin snid: %v pack: %v", p.SnId, pack)
|
||||||
p.SendToClient(int(welfare.SPacketID_PACKET_SCDiamondBankTakeDiamond), pack)
|
p.SendToClient(int(welfare.SPacketID_PACKET_SCDiamondBankTakeDiamond), pack)
|
||||||
}
|
}
|
||||||
|
|
||||||
return retItemArr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新钻石存储罐数据
|
// 更新钻石存储罐数据
|
||||||
|
|
Loading…
Reference in New Issue