From 3662fca639f1076a8b428cc386bd86632bcc1b25 Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Wed, 18 Dec 2024 10:03:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- src/config.js | 46 +++++++++++++++++++++++----------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index f38d430..5330685 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "private": true, "scripts": { - "start": "set PORT=7001 && cross-env ESLINT=none roadhog server", - "demo": "set PORT=7999 && cross-env ESLINT=none roadhog server", + "start": "set PORT=6001 && cross-env ESLINT=none roadhog server", + "demo": "set PORT=6999 && cross-env ESLINT=none roadhog server", "build": "cross-env ESLINT=none roadhog build", "build:report": "cross-env ESLINT=none NODE_ENV=production ANALYZE=true roadhog build" }, diff --git a/src/config.js b/src/config.js index b6938e8..dfcc3da 100644 --- a/src/config.js +++ b/src/config.js @@ -1,8 +1,8 @@ const getServiceHost = api => { - const apimodules = [{ OP: 7116 }, { BD: 7101 }, { DD: 7102 }, { EA: 7103 }, { ED: 7104 }, { EM: 7105 }, { FC: 7106 }, - { FM: 7107 }, { KR: 7108 }, { LG: 7109 }, { MR: 7110 }, { NW: 7111 }, { PF: 7112 }, { PM: 7113 }, { QC: 7114 }, { FW: 7115 }, { OP: 7116 }, - { HM: 7117 }, { PP: 7118 }, { FO: 7119 }, { UT: 7177 }, { BS: 7178 }, { SC: 7179 }, { TI: 7179 }, { SE: 7179 }, { AE: 7179 }, { PT: 7179 }, { LR: 7179 }, { OG: 7179 }, { PE: 7179 }, { OH: 7179 }, { CM: 7179 }, { PR: 7179 }, { DM: 7179 }, { BI: 7179 }, { TL: 7179 }] - let port = 7112 + const apimodules = [{ OP: 6116 }, { BD: 6101 }, { DD: 6102 }, { EA: 6103 }, { ED: 6104 }, { EM: 6105 }, { FC: 6106 }, + { FM: 6107 }, { KR: 6108 }, { LG: 6109 }, { MR: 6110 }, { NW: 6111 }, { PF: 6112 }, { PM: 6113 }, { QC: 6114 }, { FW: 6115 }, { OP: 6116 }, + { HM: 6117 }, { PP: 6118 }, { FO: 6119 }, { UT: 6177 }, { BS: 6178 }, { SC: 6179 }, { TI: 6179 }, { SE: 6179 }, { AE: 6179 }, { PT: 6179 }, { LR: 6179 }, { OG: 6179 }, { PE: 6179 }, { OH: 6179 }, { CM: 6179 }, { PR: 6179 }, { DM: 6179 }, { BI: 6179 }, { TL: 6179 }] + let port = 6112 for (let i = 0; i < apimodules.length; i++) { const apimodule = apimodules[i] const key = Object.keys(apimodule)[0] @@ -21,62 +21,62 @@ const config = { return `http://localhost:${apis}` }, cookieDomain: "", - flowServiceHost: "http://120.25.146.51:7188/", + flowServiceHost: "http://120.25.146.51:6188/", hmiUrl: "http://localhost:8060/", - webSocketHost: 'ws://localhost:7140/', - picServerHost: 'http://47.122.43.22:7199', + webSocketHost: 'ws://localhost:6140/', + picServerHost: 'http://47.122.43.22:6199', dataVUrl: "http://localhost:8062/home", version: version, guideSeverHost: "http://47.122.43.22/apk/", - guideH5Host: "http://47.122.43.22:9100/", + guideH5Host: "http://47.122.43.22:6100/", }, cloud: { serviceHost: api => { const apis = getServiceHost(api) return `http://120.25.146.51:${apis}` }, - flowServiceHost: "http://120.25.146.51:7188", + flowServiceHost: "http://120.25.146.51:6188", cookieDomain: "", hmiUrl: "http://120.25.146.51:8098/", - webSocketHost: 'ws://120.25.146.51:7140/', - picServerHost: 'http://120.25.146.51:7199', - dataVUrl: "http://120.25.146.51:7167/home", + webSocketHost: 'ws://120.25.146.51:6140/', + picServerHost: 'http://120.25.146.51:6199', + dataVUrl: "http://120.25.146.51:6167/home", version: version, guideSeverHost: "http://www.xmmhe.com/apk/", - guideH5Host: "http://www.xmmhe.com:9100/", + guideH5Host: "http://www.xmmhe.com:6100/", }, test: { serviceHost: api => { const apis = getServiceHost(api) return `http://47.122.43.22:${apis}` }, - flowServiceHost: "http://47.122.43.22:7188", + flowServiceHost: "http://47.122.43.22:6188", cookieDomain: "", hmiUrl: "http://47.122.43.22:8098/", - webSocketHost: 'ws://47.122.43.22:7140/', - picServerHost: 'http://47.122.43.22:7199', - dataVUrl: "http://47.122.43.22:7167/home", + webSocketHost: 'ws://47.122.43.22:6140/', + picServerHost: 'http://47.122.43.22:6199', + dataVUrl: "http://47.122.43.22:6167/home", version: version, guideSeverHost: "http://47.122.43.22/apk/", - guideH5Host: "http://47.122.43.22:9100/", + guideH5Host: "http://47.122.43.22:6100/", }, } let env = "" switch (window.location.host) { - case "120.25.146.51:7001": + case "120.25.146.51:6001": env = "cloud" break - case "www.xmmhe.com:7001": + case "www.xmmhe.com:6001": env = "cloud" break - case "xmmhe.com:7001": + case "xmmhe.com:6001": env = "cloud" break - case "47.122.43.22:7001": + case "47.122.43.22:6001": env = "test" break - case "47.122.43.22:7999": + case "47.122.43.22:6999": env = "test" break default: