Browse Source

省侧模型同步修改

master
wangguangyuan 3 months ago
parent
commit
2dcf312345
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      src/main/java/com/inspect/tcpserver/tcp/NettyClient.java

+ 13
- 7
src/main/java/com/inspect/tcpserver/tcp/NettyClient.java View File

@ -492,13 +492,19 @@ public class NettyClient {
public void sendJsonMessage(String uuid, String json) { public void sendJsonMessage(String uuid, String json) {
JSONObject obj = JSONObject.parseObject(json); JSONObject obj = JSONObject.parseObject(json);
if (obj != null) { if (obj != null) {
if(obj.get("robot_file_path") != null ||
obj.get("video_file_path") != null ||
obj.get("device_file_path") != null ||
obj.get("drone_file_path") != null ||
obj.get("task_file_path") != null ||
obj.get("voice_file_path") != null ||
obj.get("host_file_path") != null) {
if (obj.get("robot_file_path") != null ||
obj.get("video_file_path") != null ||
obj.get("device_file_path") != null ||
obj.get("drone_file_path") != null ||
obj.get("task_file_path") != null ||
obj.get("voice_file_path") != null ||
obj.get("host_file_path") != null ||
obj.get("overhaularea_file_path") != null ||
obj.get("map_file_path") != null ||
obj.get("maintenance_file_path") != null ||
obj.get("effect_file_path") != null ||
obj.get("alarm_threshold_file_path") != null
) {
String response = createDownResponse(obj); String response = createDownResponse(obj);
String xml = upJson2Xml.UpStreamJson2Xml(response, ModelControl.class); String xml = upJson2Xml.UpStreamJson2Xml(response, ModelControl.class);
xml = xml.replaceAll(deviceAlias, alias); xml = xml.replaceAll(deviceAlias, alias);


Loading…
Cancel
Save