公会副本号角
parent
40bc0cef59
commit
4ed5ba896a
|
@ -140,13 +140,19 @@ function GuildTranscriptMainPopup:BindEvent()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
NetManager.GuildChallengeMessageResponse(function (msg)
|
NetManager.GuildChallengeMessageResponse(function (msg)
|
||||||
if msg.nextTime <= 0 then
|
LogGreen("msg.nextTime "..msg.nextTime.." PlayerManager.serverTime "..PlayerManager.serverTime)
|
||||||
|
local second = msg.nextTime - PlayerManager.serverTime
|
||||||
|
if second <= 0 then
|
||||||
ChatManager.RequestSendGuildTranscript(function()
|
ChatManager.RequestSendGuildTranscript(function()
|
||||||
-- PopupTipPanel.ShowTip("")
|
-- PopupTipPanel.ShowTip("")
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
local timeStar = os.date("%Y时%m分%d", msg.nextTime)
|
local day = math.floor(second / (24 * 3600))
|
||||||
PopupTipPanel.ShowTip(string.format("%s后才可再次使用此功能!",timeStar))
|
local minute = math.floor(second / 60) % 60
|
||||||
|
local sec = math.floor(second % 60)
|
||||||
|
local hour = math.floor(math.floor(second - day * 24 * 3600 - sec - minute * 60) / 3600)
|
||||||
|
local timeStr = string.format("%s时%s分%s秒", hour, minute, sec)
|
||||||
|
PopupTipPanel.ShowTip(string.format("%s后才可再次使用此功能!",timeStr))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue