无尽秘宝推送
parent
997eae4e2c
commit
b0f868485e
File diff suppressed because one or more lines are too long
|
@ -839,9 +839,9 @@ function this.InitTreasureData(msg)
|
|||
this.treasureData.tip = "完成无尽副本的任务提升秘宝等级,激活秘宝后还可领取额外奖励"
|
||||
this.treasureData.resetTime = msg.resetTime
|
||||
--购买状态
|
||||
-- --LogGreen("msg.isBuy:"..msg.isBuy)
|
||||
LogGreen("msg.isBuy:"..msg.isBuy)
|
||||
this.SetTreasureGiftState(msg.isBuy)
|
||||
-- --LogGreen("msg.score:"..msg.score)
|
||||
LogGreen("msg.score:"..msg.score)
|
||||
this.treasureData.curScore = BagManager.GetItemCountById(EndLessMapManager.scoreValueId) or 0
|
||||
this.GetTreasureData()
|
||||
this.treasureData.rewardData = this.treasureDataReward
|
||||
|
|
|
@ -136,7 +136,17 @@ function this.RegisterMessage(network)
|
|||
socket:RegistNetMessage(MessageTypeProto_pb.VIP_LEVEL_STATE_RESPONSE, this.RefreshLevleRewardDatas)
|
||||
-- --心愿抽卡信息推送
|
||||
socket:RegistNetMessage(MessageTypeProto_pb.wishDrawCardIndication, this.WishDrawCardInfoIndication)
|
||||
-- --心愿抽卡信息推送
|
||||
socket:RegistNetMessage(MessageTypeProto_pb.ENDLESS_TREASURE_REFRESH_INDICATION, this.EenlessTreasureRefreshIndication)
|
||||
end
|
||||
|
||||
--后端推送福利红包数据
|
||||
function this.EenlessTreasureRefreshIndication(buffer)
|
||||
local data = buffer:DataByte()
|
||||
local msg = MapInfoProto_pb.EndlessTreasureInfoResponse()
|
||||
msg:ParseFromString(data)
|
||||
LogGreen("/////////////////////////////")
|
||||
EndLessMapManager.InitTreasureData(msg)
|
||||
end
|
||||
|
||||
--后端推送福利红包数据
|
||||
|
|
Loading…
Reference in New Issue