zhou.xiaoning 4 år sedan
förälder
incheckning
5ad72bbc8a
3 ändrade filer med 7 tillägg och 1 borttagningar
  1. 1 1
      public/config/app.config.json
  2. 1 0
      src/services/bus/index.ts
  3. 5 0
      src/utils/request/serviceURL.ts

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.175:8080/cfg?key=test_175"
+    "apiUrl": "http://218.17.158.45:21001/cfg?key=test_175"
 }

+ 1 - 0
src/services/bus/index.ts

@@ -75,6 +75,7 @@ async function queryDependencies(): Promise<number> {
         const apiUrl = await getCommonApiUrl(config.data.apiUrl);
 
         if (apiUrl.data.code === 200) setServiceURL(apiUrl.data.data);
+
         // await APP.connectQuote();
         /** 数据返回 */
         return Promise.resolve(1);

+ 5 - 0
src/utils/request/serviceURL.ts

@@ -73,4 +73,9 @@ export const commonSearchUrl = (url: string): string => {
 export const setServiceURL = (config: URL): void => {
     console.log('URL', config);
     serviceURL = config;
+
+    // 外网环境(175),外包同事使用
+    serviceURL.goCommonSearchUrl = "http://218.17.158.45:21001/api"
+    serviceURL.quoteUrl = "ws://218.17.158.45:21004"
+    serviceURL.tradeUrl = "ws://218.17.158.45:21005"
 };