12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- var api_config = ""
- let upload_url = ""
- let H5_url = ""
- let update_url = ""
- let ws_url = ''
- var server_url = 'http://192.168.1.144:8088'
- var surl = "http://"+uni.getStorageSync("xjappserver").url+':'+uni.getStorageSync("xjappserver").port
- server_url = surl
- if(process.env.NODE_ENV === 'development'){
- api_config = server_url
- upload_url = server_url
- H5_url = server_url+"/apph5/#/"
- update_url = server_url+"/apph5/downLoad/update.txt"
- ws_url = "ws://192.168.20.126:8081"
-
-
-
-
-
- }
- else{
- api_config = server_url
- upload_url = server_url
- H5_url = server_url+"/apph5/#/"
- update_url = server_url+"/apph5/downLoad/update.txt"
- ws_url = "ws://192.168.20.132:8081"
-
-
-
-
-
-
-
-
-
-
- }
- export {upload_url,api_config,H5_url,update_url,ws_url}
|