公会副本号角
parent
40bc0cef59
commit
4ed5ba896a
|
@ -140,13 +140,19 @@ function GuildTranscriptMainPopup:BindEvent()
|
|||
return
|
||||
end
|
||||
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()
|
||||
-- PopupTipPanel.ShowTip("")
|
||||
end)
|
||||
else
|
||||
local timeStar = os.date("%Y时%m分%d", msg.nextTime)
|
||||
PopupTipPanel.ShowTip(string.format("%s后才可再次使用此功能!",timeStar))
|
||||
local day = math.floor(second / (24 * 3600))
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue