内网部署
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
export default class config{
|
||||
static prod="online_not"
|
||||
static prod="online"
|
||||
static getZnzqApiUrl(){
|
||||
if(process.env.NODE_ENV === 'development' ){
|
||||
return 'http://work.ii999.live:19002/znzq'
|
||||
}else{
|
||||
if(this.prod=="online"){
|
||||
return 'http://work.ii999.live:19002/znzq'
|
||||
return '/znzq'
|
||||
}else{
|
||||
return '/znzq'
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export default class config{
|
||||
return `http://localhost:8080/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}`
|
||||
}else{
|
||||
if(this.prod=="online"){
|
||||
return `https://119.45.242.222/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}`
|
||||
return `https://43.139.208.48/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}`
|
||||
}else{
|
||||
return `https://172.16.3.18/hd-glasses-app/#/call_room?showInviteConfirmDialog=1&isForce=0&isPublish=${isPublish}&isPlayer=${isPlayer}&uid=${userid}&room=${room}&hasVideo=${hasVideo}&uname=${uname}&tuid=${tuid}`
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export default class config{
|
||||
return 'webrtc://119.45.242.222/'
|
||||
}else{
|
||||
if(this.prod=="online"){
|
||||
return 'webrtc://119.45.242.222/'
|
||||
return 'webrtc://43.139.208.48/'
|
||||
}else{
|
||||
return 'webrtc://172.16.3.18/'
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ import App from './App'
|
||||
|
||||
|
||||
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Vue.prototype.$socketTask = socketTask;
|
||||
|
||||
@@ -556,7 +556,7 @@ const store = new Vuex.Store({
|
||||
//获取通讯录,存储通讯录数据到本地
|
||||
customHttp.customHttp.get('/api/im/app/addressList', {
|
||||
params: {
|
||||
pageSize:1000
|
||||
|
||||
},
|
||||
/* 会加在url上 */
|
||||
header: {},
|
||||
|
||||
@@ -280,8 +280,8 @@
|
||||
// updateChartHistoryFromServer
|
||||
},
|
||||
onShow() {
|
||||
const hd_gps_location = localStorage.getItem("hd_gps_location")
|
||||
if (hd_gps_location != null) {
|
||||
const client = localStorage.getItem("client")
|
||||
if (client == "app") {
|
||||
this.isMobile = true
|
||||
}
|
||||
// TODO PC开发
|
||||
|
||||
@@ -65,6 +65,12 @@
|
||||
// // 监听接收聊天信息
|
||||
uni.$on('onP2PMessage', this.onMessage)
|
||||
|
||||
//
|
||||
if (options.client) {
|
||||
uni.setStorageSync("client", options.client)
|
||||
}
|
||||
|
||||
|
||||
if (options.imUserSign) {
|
||||
uni.showLoading({
|
||||
title: "数据加载中...",
|
||||
|
||||
Reference in New Issue
Block a user