From b7b4cb32f94622fbb91a8a5b1c7ea22bdbb19995 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期五, 19 八月 2022 11:09:53 +0800
Subject: [PATCH] 正式域名配置

---
 api/global.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/api/global.js b/api/global.js
index a0e15ad..0cc2fd4 100644
--- a/api/global.js
+++ b/api/global.js
@@ -27,6 +27,10 @@
 	});
 }
 
+// const baseUrl = 'http://192.168.3.159:9999'
+// const baseUrl = 'https://mx.jzeg.cn:443/app';
+const baseUrl = "https://mx.jzeg.cn:9998";
+
 // POST璇锋眰
 function apiLogin({
 	username,
@@ -38,7 +42,7 @@
 
 	return new Promise((resolve, reject) => {
 		uni.request({
-			url: "/auth/oauth/token?grant_type=password&scope=server",
+			url: baseUrl + "/auth/oauth/token?grant_type=password&scope=server",
 			method: "POST",
 			data: {
 				username,
@@ -55,6 +59,7 @@
 				resolve(res);
 			},
 			fail: (err) => {
+				console.log('閿欒',err);
 				uni.hideLoading();
 				uni.showToast({
 					icon: 'none',

--
Gitblit v1.9.1