From f1f26b166b71371e0a8dfaf9b9f575d2d79feefc Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 23 四月 2025 17:40:03 +0800
Subject: [PATCH] 完成线索任务的发布功能

---
 src/api/index.js |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 0ff0550..f88ce35 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,16 +1,37 @@
 import axios from 'axios';
 import { setInterceptors } from "./config";
 
-const url = 'http://47.100.191.150:9031/';
-// const url = 'http://192.168.1.9:8080/';
-const imgUrl = 'http://47.100.191.150:9031/images/';
+const debug = true;
+
+// let url1 = 'http://47.100.191.150:9031/';
+// let url1_file = 'http://47.100.191.150:9031';
+let url1 = 'https://fyami.com.cn:448/';
+let url1_file = 'https://fyami.com.cn:448/';
+let url2 = 'http://47.100.191.150:9005/';
+let url2_file = 'http://47.100.191.150:9005/';
+
+if (debug) {
+  url1 = 'http://192.168.0.110:8084/';
+  url1_file = 'http://192.168.0.110:8084/';
+  // url2 = 'http://192.168.0.110:9001/';
+  // url2_file = 'http://192.168.0.138:8080/';
+}
 
 //椋炵窘鐩戠
 const $clue = axios.create({
-  baseURL: url,
-  timeout: 10000
+  baseURL: url1,
+  timeout: 20000
   // headers: addHeaders()
 });
+$clue.imgUrl = `${url1_file}images/`;
+
+//椋炵窘鐩戠
+const $fysp = axios.create({
+  baseURL: url2,
+  timeout: 20000
+});
+$fysp.imgUrl = `${url2_file}images/`;
+$fysp.downloadUrl = `${url2_file}files/`;
 
 // function getHeaders() {
 //   const token = 'e6dc8bb9e1ff0ce973fb92b4af2e4c3f';
@@ -29,5 +50,6 @@
 
 //娣诲姞鎷︽埅鍣�
 setInterceptors($clue)
+setInterceptors($fysp)
 
-export { $clue, imgUrl };
+export { $clue, $fysp };

--
Gitblit v1.9.3