|
@@ -2,24 +2,27 @@ let global = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
// const application='prod'
|
|
// const application='prod'
|
|
|
-const application='dev'
|
|
|
|
|
-// const application='test'
|
|
|
|
|
|
|
+// const application='dev'
|
|
|
|
|
+const application='test'
|
|
|
|
|
|
|
|
if (application == 'prod') {
|
|
if (application == 'prod') {
|
|
|
//正式环境
|
|
//正式环境
|
|
|
global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
|
|
global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
|
|
|
global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
|
|
global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
|
|
|
- global.enabledCrypto = true
|
|
|
|
|
|
|
+ global.enabledCrypto = true //是否开启api加密
|
|
|
|
|
+ global.enabledDebug=false //是否开启调试模式
|
|
|
}else if (application == 'dev') {
|
|
}else if (application == 'dev') {
|
|
|
//开发环境
|
|
//开发环境
|
|
|
global.baseUrl = 'http://192.168.1.168:2366/'
|
|
global.baseUrl = 'http://192.168.1.168:2366/'
|
|
|
global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
|
|
global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
|
|
|
global.enabledCrypto = true
|
|
global.enabledCrypto = true
|
|
|
|
|
+ global.enabledDebug= true
|
|
|
}else if (application == 'test') {
|
|
}else if (application == 'test') {
|
|
|
//测试环境
|
|
//测试环境
|
|
|
global.baseUrl = 'http://139.159.240.119:2366/'
|
|
global.baseUrl = 'http://139.159.240.119:2366/'
|
|
|
global.WebSocketUrl = 'ws://139.159.240.119:2366/websocket/'
|
|
global.WebSocketUrl = 'ws://139.159.240.119:2366/websocket/'
|
|
|
global.enabledCrypto = true
|
|
global.enabledCrypto = true
|
|
|
|
|
+ global.enabledDebug= true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|