From 0980fc2bb1b8ad54607e4325ac88781f27d378aa Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 09 十一月 2024 13:12:09 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/http.js |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index b8a6cfd..dfc2940 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -27,7 +27,7 @@
             const commonList = common ? eval(common) : [];
             const pointList = point ? eval(point) : [];
             const mapItemList = [...commonList, ...pointList];
-        
+
             mapItemList.forEach(item => {
                 if (item.type !== DEVICE_TYPE.AGV) {
                     const sprite = Tool.generateSprite(item.type);
@@ -244,3 +244,19 @@
         console.error(error.message);
     })
 }
+
+export const getFakeSign = async (param, callback) => {
+    await request.get('/fake/sign').then((res) => {
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            if (callback) {
+                callback(data)
+            }
+        } else {
+            notify.error(msg);
+        }
+    }).catch((error) => {
+        notify.error(error.message);
+        console.error(error.message);
+    })
+}

--
Gitblit v1.9.1