Compare commits

...

2 Commits

2 changed files with 10 additions and 2 deletions

View File

@ -61,6 +61,11 @@ var CONFIGITEM = {
userName: '', userName: '',
userPwd: '', userPwd: '',
}, },
//
camreaInfo: {
// cameraUrl: '10.134.135.92:9537', //
cameraUrl: '10.134.135.9:9537', //
},
backUrl: 'http://10.134.135.9:9797', backUrl: 'http://10.134.135.9:9797',
previewUrl: 'http://10.134.135.9:9796/', previewUrl: 'http://10.134.135.9:9796/',
// websocketURL: '10.134.135.9:8888/renren-admin', // // websocketURL: '10.134.135.9:8888/renren-admin', //

View File

@ -97,13 +97,16 @@ export function getHls(params) {
config2 config2
) )
} }
// 西-- (10.134.135.92:9537)
let _cameraUrl = _global && _global.config && _global.config.camreaInfo.cameraUrl || '10.134.135.92:9537';
//- //-
export function getCameraInfoByAreaId(params) { export function getCameraInfoByAreaId(params) {
return axios.get(`http://10.134.135.92:9537/data_service/getCamera/getCameraInfoByAreaId?areaId=${params.areaId}`, return axios.get(`http://${_cameraUrl}/data_service/getCamera/getCameraInfoByAreaId?areaId=${params.areaId}`,
config2 config2
) )
} }
//- //-
export function getCameraByCondition(params) { export function getCameraByCondition(params) {
return axios.post('http://10.134.135.92:9537/data_service/getCamera/getCameraByCondition', params, config2) return axios.post(`http://${_cameraUrl}/data_service/getCamera/getCameraByCondition`, params, config2)
} }