IP替换
This commit is contained in:
parent
c940528740
commit
f7c8fceb8d
@ -80,7 +80,7 @@
|
||||
"main": ".roadhogrc.mock.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://47.122.43.22:3000/wyw/mh_jy_safe_web.git"
|
||||
"url": "http://121.41.2.71:3000/wyw/mh_jy_safe_web.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
|
||||
@ -28,9 +28,9 @@ const config = {
|
||||
picServerHost: 'http://localhost:5199',
|
||||
dataVUrl: "http://localhost:8062/home",
|
||||
version: version,
|
||||
guideSeverHost: "http://47.122.43.22/apk/",
|
||||
guideH5Host: "http://47.122.43.22:9100/",
|
||||
h5Web: "http://47.122.43.22:9201/",
|
||||
guideSeverHost: "http://121.41.2.71/apk/",
|
||||
guideH5Host: "http://121.41.2.71:9100/",
|
||||
h5Web: "http://121.41.2.71:9201/",
|
||||
},
|
||||
cloud: {
|
||||
serviceHost: api => {
|
||||
@ -51,18 +51,18 @@ const config = {
|
||||
test: {
|
||||
serviceHost: api => {
|
||||
const apis = getServiceHost(api)
|
||||
return `http://47.122.43.22:${apis}`
|
||||
return `http://121.41.2.71:${apis}`
|
||||
},
|
||||
flowServiceHost: "http://47.122.43.22:3188",
|
||||
flowServiceHost: "http://121.41.2.71:3188",
|
||||
cookieDomain: "",
|
||||
hmiUrl: "http://47.122.43.22:8098/",
|
||||
webSocketHost: 'ws://47.122.43.22:3140/',
|
||||
picServerHost: 'http://47.122.43.22:5199',
|
||||
dataVUrl: "http://47.122.43.22:3167/home",
|
||||
hmiUrl: "http://121.41.2.71:8098/",
|
||||
webSocketHost: 'ws://121.41.2.71:3140/',
|
||||
picServerHost: 'http://121.41.2.71:5199',
|
||||
dataVUrl: "http://121.41.2.71:3167/home",
|
||||
version: version,
|
||||
guideSeverHost: "http://47.122.43.22/apk/",
|
||||
guideH5Host: "http://47.122.43.22:9100/",
|
||||
h5Web: "http://47.122.43.22:9201/",
|
||||
guideSeverHost: "http://121.41.2.71/apk/",
|
||||
guideH5Host: "http://121.41.2.71:9100/",
|
||||
h5Web: "http://121.41.2.71:9201/",
|
||||
},
|
||||
}
|
||||
|
||||
@ -89,11 +89,11 @@ switch (window.location.host) {
|
||||
case "xmmhe.com:5005":
|
||||
env = "cloud"
|
||||
break
|
||||
case "47.122.43.22:5000":
|
||||
case "47.122.43.22:5001":
|
||||
case "47.122.43.22:5002":
|
||||
case "47.122.43.22:5003":
|
||||
case "47.122.43.22:5004":
|
||||
case "121.41.2.71:5000":
|
||||
case "121.41.2.71:5001":
|
||||
case "121.41.2.71:5002":
|
||||
case "121.41.2.71:5003":
|
||||
case "121.41.2.71:5004":
|
||||
env = "test"
|
||||
break
|
||||
default:
|
||||
|
||||
@ -555,7 +555,7 @@ function Header(props) {
|
||||
<div className="header__right">
|
||||
{/* <RiskFourColor/> */}
|
||||
{/* <FullScreen /> */}
|
||||
{window.location.host == "47.122.43.22:8001" ? <FullScreen /> : ""}
|
||||
{window.location.host == "121.41.2.71:8001" ? <FullScreen /> : ""}
|
||||
<GuideCode />
|
||||
<HeaderNav />
|
||||
<HeaderDataV />
|
||||
|
||||
@ -21,7 +21,7 @@ export default {
|
||||
if (window.navigator.userAgent.indexOf("Windows") < 1)
|
||||
{
|
||||
window.location.replace(config.guideH5Host)
|
||||
// window.location.href="http://47.122.43.22:9100"
|
||||
// window.location.href="http://121.41.2.71:9100"
|
||||
// dispatch(routerRedux.push('/HomeMobileNew'))
|
||||
}
|
||||
else
|
||||
|
||||
@ -37,7 +37,7 @@ const formItemLayout = {
|
||||
labelCol: { span: 6 },
|
||||
wrapperCol: { span: 14 },
|
||||
};
|
||||
// window.location.href="http://47.122.43.22:9100"
|
||||
// window.location.href="http://121.41.2.71:9100"
|
||||
const openNotification = placement => {
|
||||
notification.info({
|
||||
duration: null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user