gdl_123 5 месяцев назад
Родитель
Сommit
af0398b473

+ 2 - 0
Assets/Lua/Core/LuaMain.lua

@@ -80,6 +80,8 @@ InternalRequire = function(name, endStep)
     return data
 end
 
+IsNewLuadll = false
+
 local LuaMain = class("LuaMain")
 
 -- 这里是异步初始化, 初始化的耗时操作可放这里面

+ 6 - 1
Assets/Lua/Logic/CompetitionData.lua

@@ -323,7 +323,12 @@ function CompetitionData:CanOpenSeasonUI()
     local curServerTime = ManagerContainer.LuaTimerMgr:CurLuaServerTime()
     if endTime > 0 and endTime < curServerTime then
         local delta = (curServerTime - endTime)/1000
-        local minutes = ManagerContainer.LuaTimerMgr:TransSeconds2Minutes(delta)
+        local minutes =  0
+        if IsNewLuadll then
+            minutes = ManagerContainer.LuaTimerMgr:TransSeconds2Minutes(delta)
+        else    
+            minutes = ManagerContainer.LuaTimerMgr:TransSeconds2Minutes(#delta)
+        end
         if minutes < 5 then
             ManagerContainer.LuaUIMgr:ErrorNoticeDisplay("DscSeasonResult8")
             return false

+ 6 - 1
Assets/Lua/Logic/Friend/FriendData.lua

@@ -67,7 +67,12 @@ function FriendData:GetOfflineTimeStr()
     if offlineTime < 3600 then
         return string.formatbykey("FriendsOffline")
     elseif offlineTime < 86400 then
-        local hours = math.floor(offlineTime/3600)  
+        local hours = 0
+        if IsNewLuadll then
+            hours = math.floor(offlineTime/3600)  
+        else    
+            hours = math.floor(#offlineTime/3600)  
+        end
         return string.formatbykey("FriendsOfflineHour",hours)
     elseif  offlineTime < 259200 then
         return string.formatbykey("FriendsOfflineDay",1)

+ 6 - 1
Assets/Lua/Logic/ProtocalDataNormal.lua

@@ -416,7 +416,12 @@ function ProtocalDataNormal.ParseSystemMessageData(message)
     data.nickname = message.nick_name
     data.paramIds = message.param_id
     local time = message.send_time/1000
-    data.sendTime = time
+    if IsNewLuadll then
+        data.sendTime = time
+    else
+        data.sendTime = #time    
+    end
+    
     data.sendTime64 = message.send_time
     return data
 end