From 9697dfd0004335bab3bf5626425eab3130a55ec6 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu <819527061@qq.com>
Date: 星期三, 17 六月 2026 17:53:16 +0800
Subject: [PATCH] 根据时间段查询发运和煤种

---
 utils/request.js |   33 +++++++++++++++++++--------------
 1 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/utils/request.js b/utils/request.js
index abe7958..38d11bb 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -6,6 +6,7 @@
 	jihua
 } from './jihua.js';
 
+
 // 鎴愬姛
 const responseOK = (response) => {
 	const {
@@ -18,16 +19,16 @@
 const responseFailedDependency = () => {
 	uni.showToast({
 		title: '鐧诲綍鐘舵�佽繃鏈�,鍗冲皢杩斿洖鐧诲綍锛�',
-		icon: 'error',
+		icon: 'none',
 		position: 'top',
 		duration: 2000
 	});
 	setTimeout(() => {
-			uni.clearStorageSync();
-			// 閲嶅畾鍚戠櫥褰�
-			uni.redirectTo({
-				url: '/pages/login/login'
-			})
+		uni.clearStorageSync();
+		// 閲嶅畾鍚戠櫥褰�
+		uni.redirectTo({
+			url: '/pages/login/login'
+		})
 	}, 2000);
 	return false;
 }
@@ -82,16 +83,20 @@
 	500: responseError
 }
 
-// let BaseUrl = 'http://192.168.3.159:9999';
-// const BaseUrl = 'https://mx.jzeg.cn:443/app';
-const BaseUrl = "https://mx.jzeg.cn:9998";
+ // let BaseUrl = 'http://192.168.0.115:9999';
+// const BaseUrl = 'https://mx.jzeg.cn:9998';
+// const BaseUrl = 'https://mx.res.jzeg.cn:8887';
+const BaseUrl = 'https://mxwx.res.jzeg.cn:8887';  //绾夸笂(鏂�)
+ //let BaseUrl = 'http://192.168.0.146:9999';
+
+//const BaseUrl = "https://mx.jzeg.cn:9998"; // 姝e紡鏈嶅姟
 
 // 璇锋眰鎷︽埅
-const fetch = (url, opt ,urlParam) => {
-	
+const fetch = (url, opt, urlParam) => {
+
 	let urls = (api[opt.url]?.url || api[url]?.url || jihua[opt.url]?.url || jihua[url]?.url);
 	let params = opt.params ? ('?' + Object.keys(opt.params).map(key => key + '=' + opt.params[key]).join('&')) :
-	'';
+		'';
 	opt.url = urlParam ? BaseUrl + urls + `/${urlParam}` + params : BaseUrl + urls + params
 	opt.method = opt.method || "GET";
 	var header = {}
@@ -99,8 +104,8 @@
 		header = {
 			"TENANT-ID": 5,
 			Authorization: 'Bearer ' + uni.getStorageSync('access_token'),
-			VERSION: "zzl",
-			Accept:'application/json, text/plain, */*' // 瀹㈡埛绔墍鑳芥帴鍙楃殑鏁版嵁绫诲瀷
+			VERSION: "ZXX",
+			// Accept: 'application/json, text/plain, */*' // 瀹㈡埛绔墍鑳芥帴鍙楃殑鏁版嵁绫诲瀷
 		}
 	}
 

--
Gitblit v1.9.1