From 65b5b0ced6d04f773002908cb8c0720540f34907 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 10 四月 2025 09:20:17 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
index e3caf08..9b5c711 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
@@ -16,7 +16,18 @@
 		if (config.url.includes('http://') || config.url.includes('https://')) {
 			config.baseURL = '';
 		} else {
-			config.baseURL = baseUrl;
+			uni.getStorage({
+				key: 'storage_key_ipAddress',
+				success: (res) => {
+					debugger;
+					console.log(res.data.WCSIP);
+					config.baseURL = res.data.WCSIP;
+				},
+				fail: (err) => {
+					console.log("娌℃湁鎵惧埌瀛樺偍鐨処P鍦板潃,浣跨敤榛樿BaseURL")
+					config.baseURL = baseUrl;
+				},
+			});
 		}
 
 		config.header.Token = 'xxxxxx';

--
Gitblit v1.9.3