From 89ab2ec7f8790c5cc184de98682af032c69c2afc Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 11 九月 2024 15:13:27 +0800 Subject: [PATCH] 2024.9.11 --- src/api/index.js | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 01609aa..fea72e0 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -3,19 +3,21 @@ const debug = true -let ip1 = 'http://47.100.191.150:9005/' +var IP = '47.100.191.150' +var PORT = '9005' +if (debug) { + IP = '192.168.0.138' + PORT = '8082' +} + +let ws = `${IP}:${PORT}` +let ip1 = `http://${IP}:${PORT}/` + let ip1_file = 'http://47.100.191.150:9005/' // let ip1 = 'https://fyami.com.cn:447/'; // let ip1_file = 'https://fyami.com.cn:447/'; let ip2 = 'https://fyami.com.cn/' let ip2_file = 'https://fyami.com.cn/' - -if (debug) { - ip1 = 'http://192.168.0.138:8082/' - // ip1_file = 'http://47.100.191.150:9005/'; - // ip2 = 'http://192.168.0.138:8080/'; - // ip2_file = 'https://fyami.com.cn/'; -} //椋炵窘鐩戠 const $fysp = axios.create({ @@ -96,4 +98,4 @@ ) }) -export { $fysp, $fytz } +export { $fysp, $fytz, ws } -- Gitblit v1.9.3