【跨服天梯】 提交
parent
e3960fc466
commit
50743a36b7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue