【易经宝库】开始获取活动数据

dev_chengFeng
ZhangBiao 2020-11-03 09:58:37 +08:00
parent 8640018b87
commit f79499faea
7 changed files with 78 additions and 4 deletions

View File

@ -469,7 +469,7 @@ PanelType = {
LingShouUpLv={14,16,1202},--灵兽升级
LingShouUpStar={14,16,1203},--灵兽升星
Celebration = {14,16,50003},--社稷大典
YiJingBaoKu = {14,16,50003},--易经宝库
YiJingBaoKu = {14,16,1004},--易经宝库
}

View File

@ -173,6 +173,8 @@ ConfigName = {
FreeTravelStore="FreeTravelStore",
GodSacrificeConfig = "GodSacrificeConfig",
GodSacrificeSetting = "GodSacrificeSetting",
BlessingConfigNew = "BlessingConfigNew",
BlessingRewardPoolNew = "BlessingRewardPoolNew",
}
require "Framework/GameDataBase"

View File

@ -13,6 +13,9 @@ GETSHEJIAWARDREQUEST = protobuf.Descriptor();
GETSHEJIAWARDREQUEST_ACTIVITYID_FIELD = protobuf.FieldDescriptor();
GETSHEJIAWARDRESPONSE = protobuf.Descriptor();
GETSHEJIAWARDRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
SELETSUBREWARDPOOLREQUEST = protobuf.Descriptor();
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD = protobuf.FieldDescriptor();
SELETSUBREWARDPOOLRESPONSE = protobuf.Descriptor();
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.name = "itemId"
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.full_name = ".com.ljsd.jieling.protocols.CommitShejiActivityItemRequest.itemId"
@ -94,9 +97,35 @@ GETSHEJIAWARDRESPONSE.enum_types = {}
GETSHEJIAWARDRESPONSE.fields = {GETSHEJIAWARDRESPONSE_DROP_FIELD}
GETSHEJIAWARDRESPONSE.is_extendable = false
GETSHEJIAWARDRESPONSE.extensions = {}
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.name = "selectId"
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolRequest.selectId"
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.number = 1
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.index = 0
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.label = 1
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.has_default_value = false
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.default_value = 0
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.type = 5
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.cpp_type = 1
SELETSUBREWARDPOOLREQUEST.name = "SeletSubRewardPoolRequest"
SELETSUBREWARDPOOLREQUEST.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolRequest"
SELETSUBREWARDPOOLREQUEST.nested_types = {}
SELETSUBREWARDPOOLREQUEST.enum_types = {}
SELETSUBREWARDPOOLREQUEST.fields = {SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD}
SELETSUBREWARDPOOLREQUEST.is_extendable = false
SELETSUBREWARDPOOLREQUEST.extensions = {}
SELETSUBREWARDPOOLRESPONSE.name = "SeletSubRewardPoolResponse"
SELETSUBREWARDPOOLRESPONSE.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolResponse"
SELETSUBREWARDPOOLRESPONSE.nested_types = {}
SELETSUBREWARDPOOLRESPONSE.enum_types = {}
SELETSUBREWARDPOOLRESPONSE.fields = {}
SELETSUBREWARDPOOLRESPONSE.is_extendable = false
SELETSUBREWARDPOOLRESPONSE.extensions = {}
CommitShejiActivityItemRequest = protobuf.Message(COMMITSHEJIACTIVITYITEMREQUEST)
CommitShejiActivityItemResponse = protobuf.Message(COMMITSHEJIACTIVITYITEMRESPONSE)
GetShejiAwardRequest = protobuf.Message(GETSHEJIAWARDREQUEST)
GetShejiAwardResponse = protobuf.Message(GETSHEJIAWARDRESPONSE)
SeletSubRewardPoolRequest = protobuf.Message(SELETSUBREWARDPOOLREQUEST)
SeletSubRewardPoolResponse = protobuf.Message(SELETSUBREWARDPOOLRESPONSE)

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,8 @@
DynamicActivityManager = {}
local this = DynamicActivityManager
this.curLevel = 0
this.curLevel = 0--社稷大典的等级
this.curBaoKuLevel = 0--易经宝库等级
function this.Initialize()
end
@ -16,7 +17,7 @@ function this.SheJiGetRankData(type,activityId,fun)
end,activityId)
end
function this.SetCurLevel(level)
function this.SetCurLevel(level)--社稷大典的等级
this.curLevel = level
end
@ -55,4 +56,16 @@ function this.SheJiCheckRedPoint()
end
end
function this.GetBaoKuData()
local ActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.Celebration)--活动数据
this.curBaoKuLevel = 1
local activityId = 7001--ActInfo.activityId
local BlessingConfigNew = ConfigManager.GetConfigDataByKey(ConfigName.BlessingConfigNewl,"ActivityId",activityId)
local curPool = BlessingConfigNew.BasicPoolId[this.curBaoKuLevel]
local BlessingRewardPoolNew = ConfigManager.GetAllConfigsDataByKey(ConfigName.BlessingRewardPoolNew,"PoolId",curPool)
local data={}
for i = 1, #ActInfo.mission do
end
end
return this

View File

@ -35,6 +35,9 @@ end
function YiJingBaoKu:BindEvent()
Util.AddClick(this.addBtn,function()
LogYellow("选择最终奖励")
NetManager.SelectFinalRewardRequest(61,function ()
LogYellow("选择完了")
end)
end)
Util.AddClick(this.refrashBtn,function()
@ -70,6 +73,7 @@ function YiJingBaoKu:OnShow(_sortingOrder,_parent)
sortingOrder = _sortingOrder
parent = _parent
YiJingBaoKu:Refresh()
end

View File

@ -4714,4 +4714,20 @@ function this.GetSheJiRewardRequest(id,func)
end
end)
end
--易经宝库选择最终奖励
function this.SelectFinalRewardRequest(id,func)
local data = ActivityProto_pb.SeletSubRewardPoolRequest()
data.selectId = id
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.SeletSubRewardPoolRequest, MessageTypeProto_pb.SeletSubRewardPoolResponse, msg, function(buffer)
local data = buffer:DataByte()
local msg = ActivityProto_pb.SeletSubRewardPoolResponse()
msg:ParseFromString(data)
if func then
func(msg)
end
end)
end
return this