From f2aadae922b9829a3cbc6b465dc220c11a2e5b8a Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 16 九月 2025 13:35:46 +0800
Subject: [PATCH] ID1766-x

---
 src/utils/httpApi.ts |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/utils/httpApi.ts b/src/utils/httpApi.ts
index 4cbc6d7..632b95f 100644
--- a/src/utils/httpApi.ts
+++ b/src/utils/httpApi.ts
@@ -76,4 +76,39 @@
     } catch (error) {
         throw error;
     }
+}
+
+/**
+ * 获取副屏最新的版本号Api
+ * @returns 
+ */
+export const getServiceVersionApi = async(version: string) => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, { version }, {
+            headers: {
+                'Content-Type': 'application/x-www-form-urlencoded'
+            }
+        });
+        return response.data;
+    } catch (error) {
+        throw error;
+    }
+}
+
+/**
+ * 推出登录
+ * @param deviceCode 
+ * @returns 
+ */
+export const logoutForSubScreen = async(deviceCode: string) => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/user/info/logoutForSubScreen`, { deviceCode }, {
+            headers: {
+                'Content-Type': 'application/x-www-form-urlencoded'
+            }
+        });
+        return response.data
+    } catch (error) {
+        throw error;
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0