增加TCP数据头

This commit is contained in:
qiminbao
2025-08-25 12:08:52 +08:00
parent d5fca554f1
commit 44f812e243
10 changed files with 15 additions and 15 deletions
@@ -59,7 +59,7 @@ public class DiskScheduler {
String clientId = AgentUtil.getMotherboardUUID();
Message message = Message.builder().clientId(clientId).dataType("DISK").data(data).build();
// 将对象转为 JSON 字符串
String json = "agent-tcp:"+JSON.toJSONString(message)+"@tong-ran";
String json = JSON.toJSONString(message);
AssertLog.info("发送磁盘信息包={}",json);
nettyTcpClient.sendMessage(json);
}