mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 00:34:38 +01:00
An attempt was made
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using AscNet.Common.MsgPack;
|
||||
using MessagePack;
|
||||
using MongoDB.Bson.IO;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using static AscNet.GameServer.Packet;
|
||||
|
||||
namespace AscNet.GameServer.Handlers
|
||||
@@ -28,8 +31,10 @@ namespace AscNet.GameServer.Handlers
|
||||
Code = 0,
|
||||
ReconnectToken = "eeeeeeeeeeeeeeh",
|
||||
UtcOffset = 0,
|
||||
UtcServerTime = (uint)DateTime.UtcNow.Ticks
|
||||
UtcServerTime = (uint)DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
|
||||
});
|
||||
|
||||
session.SendResponse(JsonSerializer.Deserialize<NotifyLogin>(File.ReadAllText("Data\\NotifyLogin.json")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ namespace AscNet.GameServer
|
||||
c.Error($"Exception packet received: {exception.Code}, {exception.Message}");
|
||||
break;
|
||||
default:
|
||||
c.Error($"Unknown packet received: {packet}");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user