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"
- // api_config = "http://192.168.20.132:8081" //测试环境
- // upload_url = "http://rtso-file.siwill.com"
- // H5_url = "http://192.168.20.132:8070/apph5/#/"
- // update_url = "http://192.168.20.132:8070/apph5/downLoad/update.txt"
- // ws_url = "ws://192.168.20.132: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"
- // api_config = "http://192.168.20.126:8081" //开发环境
- // upload_url = "http://192.168.20.79:9000"
- // H5_url = "http://192.168.20.126:8070/apph5/#/"
- // update_url = "http://192.168.20.126:8070/apph5/downLoad/update.txt"
- // ws_url = "ws://192.168.20.126:8081"
- // api_config = "http://rtso-api.siwill.com" //生产环境
- // upload_url = "http://rtso-file.siwill.com"
- // H5_url = "http://rtso.siwill.com/apph5/#/"
- // update_url = "http://rtso.siwill.com/apph5/downLoad/update.txt"
- // ws_url = "ws://rtso-api.siwill.com"
- }
- export {upload_url,api_config,H5_url,update_url,ws_url}
|