【跨服天梯】 提交

zhangqiang 2020-11-20 19:10:46 +08:00
parent e3960fc466
commit 50743a36b7
1 changed files with 13 additions and 2 deletions

View File

@ -206,8 +206,19 @@ function this.ShowSingleData(go,data,i)
sdBtnRedPoint:SetActive(data.personInfo.worshipTime < 0)
Util.AddOnceClick(sdBtn,function()
if data.personInfo.worshipTime < 0 then
NetManager.GetWorldArenaChallengeRequest(data.personInfo.serverId,data.personInfo.uid,function()
PopupTipPanel.ShowTip("膜拜成功获得罗浮币X50")
NetManager.GetWorldArenaChallengeRequest(data.personInfo.serverId,data.personInfo.uid,function(msg)
local itemId = 0
local itemNum = 0
if msg.drop.itemlist ~= nil and #msg.drop.itemlist > 0 then
for i = 1, #msg.drop.itemlist do
if msg.drop.itemlist[i].itemNum > 0 then
itemId = msg.drop.itemlist[i].itemId--
itemNum = msg.drop.itemlist[i].itemNum
end
end
end
PopupTipPanel.ShowTip(string.format("膜拜成功,获得%sX%s"),ConfigManager.GetConfigData(ConfigName.ItemConfig,itemId).Name, itemNum)
-- PopupTipPanel.ShowColorTip(name, icon, num)
--刷新界面
end)
end