内网开发
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
export default class config{
|
||||
static prod="online"
|
||||
static getZnzqApiUrl(){
|
||||
return process.env.NODE_ENV === 'development' ? 'http://work.ii999.live:19002/znzq' :'http://172.16.2.3:19000/znzq';
|
||||
}
|
||||
static getBaseApiUrl(){
|
||||
//return process.env.NODE_ENV === 'development' ? 'http://119.45.242.222:8989' :'http://172.16.2.3:8989';
|
||||
return process.env.NODE_ENV === 'development' ? 'http://119.45.242.222:8989' :'/base_api';
|
||||
@@ -10,4 +14,26 @@ export default class config{
|
||||
static getImAppId(){
|
||||
return 10000;
|
||||
}
|
||||
static getVideoRoomUrl(room,userid,isPublish=0,isPlayer=1){
|
||||
if(process.env.NODE_ENV === 'development' ){
|
||||
return `http://localhost:8080/hd-glasses-app/#/call_room?isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}`
|
||||
}else{
|
||||
if(this.prod=="online"){
|
||||
return `https://119.45.242.222/hd-glasses-app/#/call_room?isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}`
|
||||
}else{
|
||||
return `https://172.16.3.19/hd-glasses-app/#/call_room?isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}`
|
||||
}
|
||||
}
|
||||
}
|
||||
static getSRSUrl(){
|
||||
if(process.env.NODE_ENV === 'development' ){
|
||||
return 'webrtc://119.45.242.222/'
|
||||
}else{
|
||||
if(this.prod=="online"){
|
||||
return 'webrtc://119.45.242.222/'
|
||||
}else{
|
||||
return 'webrtc://172.16.3.19/'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user