报错提交

JieLing 2020-10-26 11:19:10 +08:00
parent ebb2748b5c
commit ab0c5a4867
1 changed files with 28 additions and 0 deletions

View File

@ -4561,5 +4561,33 @@ function this.XiaoyaoyouGetHeroRequest(id,func)
end
end)
end
--社稷大典贡献点击
function this.SheJiDonateItemRequest(id,num,func)
local data = ActivityProto_pb.CommitShejiActivityItemRequest()
data.itemId = id
data.itemNum = num
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.CommitShejiActivityItemRequest, MessageTypeProto_pb.CommitShejiActivityItemResponse, msg, function(buffer)
local data = buffer:DataByte()
local msg = ActivityProto_pb.CommitShejiActivityItemResponse()
if func then
func(msg)
end
end)
end
--社稷大典领取大宝箱奖励
function this.GetSheJiRewardRequest(id,func)
local data = ActivityProto_pb.GetShejiAwardRequest()
data.activityId = id
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.GetShejiAwardRequest, MessageTypeProto_pb.GetShejiAwardResponse, msg, function(buffer)
local data = buffer:DataByte()
local msg = ActivityProto_pb.GetShejiAwardResponse()
msg:ParseFromString(data)
if func then
func(msg)
end
end)
end
return this