From e3bdcdf9123bb69d77ce42dfcd255047c09edafc Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期日, 11 一月 2026 16:53:04 +0800
Subject: [PATCH] 出入库视频及车牌识别

---
 fzzy-igdss-web/src/main/resources/static/inout/inout-register.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/inout/inout-register.js b/fzzy-igdss-web/src/main/resources/static/inout/inout-register.js
index 7144648..3ecc099 100644
--- a/fzzy-igdss-web/src/main/resources/static/inout/inout-register.js
+++ b/fzzy-igdss-web/src/main/resources/static/inout/inout-register.js
@@ -130,11 +130,16 @@
  * 璇诲彇杞︾墝鍙�
  */
 function flushPlateNum() {
+    if (!gatewaySer) {
+        layer.msg("鏈幏鍙栧埌搴撳尯缃戝叧淇℃伅锛岃溅鐗岃鍙栧け璐ワ紒");
+        return;
+    }
+    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.plateNumUrl;
     var param = JSON.stringify(lprDto);
     var index = layer.load();
     $.ajax({
         type: "POST",
-        url: "/inout/api/get-plateNum",
+        url: url,
         dataType: "json",
         contentType: "application/json;charset=UTF-8",
         data: param,
@@ -191,13 +196,18 @@
         progress: progress,
         bizType: type,
         plateNum: data.plateNum,
-        id1: (null != lprDto) ? lprDto.id : null,
-        id2: (null != lprDto) ? lprDto.id : null,
+        id1: (null != lprDto) ? lprDto.id : null
     };
+    if (!gatewaySer) {
+        layer.msg("鏈幏鍙栧埌搴撳尯缃戝叧淇℃伅锛屾姄鍥惧け璐ワ紒");
+        submitData(data);
+        return;
+    }
+    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.snapUrl;
     $.ajax({
         sync: false,
         type: "POST",
-        url: "../../inout/api/snap-img",
+        url: url,
         dataType: "json",
         contentType: "application/json;charset=UTF-8",
         data: JSON.stringify(snapData),

--
Gitblit v1.9.3