报错提交
parent
ebb2748b5c
commit
ab0c5a4867
|
@ -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
|
Loading…
Reference in New Issue