From f43a65438cbfb5c11675bea8b643de8e0770f52b Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 13 一月 2026 13:50:45 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 4754b48..f1be56e 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -14,6 +14,26 @@
     mapContainer = param;
 }
 
+export const fetchMapPreferences = async (zoneId, setMapPreferences) => {
+    try {
+        const res = await request.post('/map/config/preferences', {
+            zoneId: zoneId
+        }, {
+            headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
+        });
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            setMapPreferences(data);
+            return data || {};
+        }
+        notify?.error(msg);
+    } catch (error) {
+        notify?.error(error.message);
+        console.error(error.message);
+    }
+    return {};
+}
+
 export const fetchMapData = (zoneId, setRcsStatus, setCurSprite) => {
     Tool.clearMapData();
     return request.post('/map/data/fetch', {

--
Gitblit v1.9.1