最后设置时间,避免因为代码执行原因导致误差过大

This commit is contained in:
大石头 2025-07-19 02:38:08 +08:00
parent ab159e3507
commit b77f0f913a
1 changed files with 4 additions and 0 deletions

View File

@ -358,6 +358,10 @@ public class StarClient : ClientBase, ICommandClient, IEventProvider
if (ext.Items.TryGetValue("Signal", out var value)) request.Signal = value.ToInt();
}
// 最后设置时间,避免因为代码执行原因导致误差过大
request.Uptime = (Int32)(Runtime.TickCount64 / 1000);
request.Time = DateTime.UtcNow.ToLong();
return request;
}