开发中

master
linbin 2024-09-07 09:24:31 +08:00
parent 8e0fd5bae3
commit abb0acfe35
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ public class LogReport implements Packet
buffer.putShort((short) dateBytes.length);
buffer.put(dateBytes);
byte[] contentBytes = content.getBytes(StandardCharsets.UTF_8);
buffer.putInt(contentBytes.length);
buffer.putShort((short) contentBytes.length);
buffer.put(contentBytes);
return 1 + 2 + dateBytes.length + 4 + contentBytes.length;
}