From 241d327e57cbfe504aa806c61aa22e6205706098 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 11 四月 2026 16:59:46 +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