修改心跳包回应
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user