From 46203ee88249d9a4046f3d453deb41edc562cf6c Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期二, 12 十二月 2023 12:36:53 +0800
Subject: [PATCH] 提交网关心跳和设备状态

---
 src/main/java/com/fzzy/protocol/sdkhk/common/LPRCallBask_V31.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/fzzy/protocol/sdkhk/common/LPRCallBask_V31.java b/src/main/java/com/fzzy/protocol/sdkhk/common/LPRCallBask_V31.java
index 8b7246a..f109708 100644
--- a/src/main/java/com/fzzy/protocol/sdkhk/common/LPRCallBask_V31.java
+++ b/src/main/java/com/fzzy/protocol/sdkhk/common/LPRCallBask_V31.java
@@ -1,6 +1,7 @@
 
 package com.fzzy.protocol.sdkhk.common;
 
+import com.fzzy.api.data.GatewayDeviceType;
 import com.fzzy.api.utils.SpringUtil;
 import com.fzzy.gateway.GatewayUtils;
 import com.fzzy.gateway.api.GatewayRemoteManager;
@@ -61,8 +62,9 @@
                     if (StringUtils.isNotEmpty(deviceIp)) deviceIp = deviceIp.trim();
 
 
-                    log.info("杞︾墝鍙凤細" + sLicense + ":杞﹁締绫诲瀷锛�" + VehicleType + ":鐩戞帶鐐圭紪鍙凤細" + MonitoringSiteID + "-璁惧IP=" + deviceIp + "-SN=" + deviceSn);
+                    //log.info("杞︾墝鍙凤細" + sLicense + ":杞﹁締绫诲瀷锛�" + VehicleType + ":鐩戞帶鐐圭紪鍙凤細" + MonitoringSiteID + "-璁惧IP=" + deviceIp + "-SN=" + deviceSn);
 
+                    log.info("杞︾墝鍙凤細" + sLicense + ":杞﹁締绫诲瀷锛�" + VehicleType + "-璁惧IP=" + deviceIp + "-SN=" + deviceSn);
 
                     //寮�濮嬫墽琛屾帹閫�
                     GatewayDevice device = GatewayUtils.getCacheByDeviceSn(deviceSn);
@@ -77,6 +79,10 @@
 
                     //鏁版嵁灏佽鎺ㄩ��
                     BaseReqData reqData = new BaseReqData(device);
+
+                    if (sLicense.startsWith("钃�") || sLicense.startsWith("榛�")) {
+                        sLicense = sLicense.replace("钃�", "").replace("榛�", "");
+                    }
                     reqData.setCarNumber(sLicense);
                     gatewayRemoteManager.getDeviceReportService(device.getPushProtocol()).reportLprData(reqData);
 

--
Gitblit v1.9.3