1
0
mirror of synced 2024-11-15 10:57:34 +01:00

Skip first 32 bytes of PlayresultData

This commit is contained in:
esuo1198 2024-03-08 11:39:23 +09:00
parent 7c03e28cda
commit 7817ccab07

View File

@ -36,7 +36,10 @@ public class PlayResultController : BaseController<PlayResultController>
public async Task<IActionResult> UploadPlayResult([FromBody] PlayResultRequest request)
{
Logger.LogInformation("PlayResult request : {Request}", request.Stringify());
var decompressed = GZipBytesUtil.DecompressGZipBytes(request.PlayresultData);
var truncated = request.PlayresultData.Skip(32).ToArray();
var decompressed = GZipBytesUtil.DecompressGZipBytes(truncated);
var playResultData = Serializer.Deserialize<PlayResultDataRequest>(new ReadOnlySpan<byte>(decompressed));