Commit 3cbe516b by zhangzhi

Merge branch 'ou' of git.mjitech.com:zhangxin/max_android_panel into ou

parents 254d5c63 14d70e29
import fetch from 'isomorphic-fetch'
import actionType from '../actiontype/getIp'
let domain = 'http://192.168.10.100:7788';
let domain = 'http://192.168.10.100:8088';
let domainIp = '192.168.10.';
......@@ -39,7 +39,7 @@ const testIp = ()=>{
const getIp = ()=>{
return (dispatch =>{
for(let i = initIndex; i < (totalIndex + initIndex) ; i++){
let url = 'http://' + domainIp + i + ':7788/testIp';
let url = 'http://' + domainIp + i + ':8088/testIp';
fetch( url ,{
// credentials : 'include',
method : 'POST',
......@@ -48,7 +48,7 @@ const getIp = ()=>{
}).then(checkStatus)
.then(parseJson)
.then((data) => {
dispatch(saveIp(domainIp + i + ':7788'))
dispatch(saveIp(domainIp + i + ':8088'))
})
.catch((err) =>{
failTotal++;
......
import { getQuery } from '../util/common';
const requestInfo = {
domainPort : getQuery('monitorPort') || '7788',
domainPort : getQuery('monitorPort') || '8088',
domainIp : process.env.PAD_ENV !== 'production' ? '192.168.10.' : '192.168.8.',
exactDomainIp: getQuery('localMonitorIP') ? '127.0.0.1' : (localStorage.getItem('monitorIP') || '')
};
......
......@@ -95,9 +95,9 @@ export default class HomePageContainer extends React.Component{
console.log('res',res)
this.props.willCloseDoor().then(()=>{
this.props.endCountBack();
this.props.changeIsSend(true);
let msg={type:'WILL_CLOSEDOOR'};
sendMsg(JSON.stringify(msg));
this.props.changeIsSend(true);
// this.props.tempLogout()
console.log('有网络',this.props)
})
......
......@@ -1098,7 +1098,7 @@ class PageContainer extends React.Component {
let {state} = this.props;
let headerInfo = state.commonInfo;
let ip = headerInfo ? headerInfo.ip : '';
let mp3Url = ip ? `http://${ip}:7788/defaultMedia/back.mp3` : '';
let mp3Url = ip ? `http://${ip}:8088/defaultMedia/back.mp3` : '';
return (
<div className={"pageContainer "} onTouchStart={()=>this.handleTouch()}>
{
......
......@@ -10,7 +10,7 @@ import refresh_disabled from '../image/refresh_disabled.png';
import overPassIcon from '../image/overPassIcon.png'
import homePage from '../image/homepage.png'
const localHost = 'http://localhost:7788';
const localHost = 'http://localhost:8088';
const devHost = 'http://test.mjitech.com';
const masterHost = 'http://www.mjitech.com';
......
......@@ -52,5 +52,6 @@
"react-dom": "^16.4.1",
"react-redux": "^5.0.7",
"redux": "^4.0.0"
}
},
"homepage": "./"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment