Browse Source

上报到上级系统支持其他类型的模型文件

master
lijiuwei 4 months ago
parent
commit
d1deb87247
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/main/java/com/inspect/tcpserver/tcp/NettyClient.java

+ 6
- 2
src/main/java/com/inspect/tcpserver/tcp/NettyClient.java View File

@ -492,12 +492,16 @@ public class NettyClient {
public void sendJsonMessage(String uuid, String json) {
JSONObject obj = JSONObject.parseObject(json);
if (obj != null) {
if(obj.get("device_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) {
String response = createDownResponse(obj);
String xml = upJson2Xml.UpStreamJson2Xml(response, ModelControl.class);
xml = xml.replaceAll(deviceAlias, alias);
log.info("###### 会话:{}, 向上级系统发送点位模型上报指令 ######", uuid);
log.info("###### 会话:{}, 向上级系统发送模型上报指令 ######", uuid);
sendMsgToUpper(true, uuid, xml);
return;
}


Loading…
Cancel
Save