Browse Source

feat(all): 修改索菲亚回传问题

1 增加索菲亚回传的格式不正确问题
visual
zhaoqiaobo 3 months ago
parent
commit
1d829a7e5c
  1. 2
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mq/NodeDataPushListener.java

2
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mq/NodeDataPushListener.java

@ -79,7 +79,7 @@ public class NodeDataPushListener {
js.set("logisticsStatus", factoryNode.getText()); js.set("logisticsStatus", factoryNode.getText());
packages.add(js); packages.add(js);
} }
jsons.set("packageInfo", JSONUtil.toJsonStr(packages)); jsons.set("packageInfo", new JSONArray(packages));
if (oldProperties.getEnable()) { if (oldProperties.getEnable()) {
try { try {
log.info("推送节点数据:{}", JSONUtil.toJsonStr(jsons)); log.info("推送节点数据:{}", JSONUtil.toJsonStr(jsons));

Loading…
Cancel
Save