修改心跳包回应

This commit is contained in:
蒾酒
2024-12-30 23:35:00 +08:00
parent 672eff2c55
commit d40c7c956e
2 changed files with 6 additions and 6 deletions

View File

@ -114,11 +114,11 @@ public class DeviceOtherMsgConsumer {
else if(jsonObject.getStr("type").equals("heartBeat")){
//需要回应
//构建回复消息-----------------------------------------------------------------------------
// Map<String,Object> reportMsg=new HashMap<>();
// reportMsg.put("code",100);
// reportMsg.put("pakSn","ok");
Map<String,Object> reportMsg=new HashMap<>();
reportMsg.put("code",100);
reportMsg.put("pakSn",jsonObject.getStr("pakSn"));
// reportMsg.put("data","heartBeat");
jsonObject.set("code",100);
// jsonObject.set("code",100);
issueInstructionsProducer.receiveDataReportResponse(productId.toString(),serialNumber,JSONUtil.toJsonStr(jsonObject));
}