|
|
@@ -1,14 +1,27 @@
|
|
|
let global = {}
|
|
|
|
|
|
|
|
|
-// global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
|
|
|
-// global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
|
|
|
-// global.enabledCrypto = false
|
|
|
-
|
|
|
+// const application='prod'
|
|
|
+// const application='dev'
|
|
|
+const application='test'
|
|
|
+
|
|
|
+if (application == 'prod') {
|
|
|
+ //正式环境
|
|
|
+ global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
|
|
|
+ global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
|
|
|
+ global.enabledCrypto = false
|
|
|
+}else if (application == 'dev') {
|
|
|
+ //开发环境
|
|
|
+ global.baseUrl = 'http://192.168.1.168:2366/'
|
|
|
+ global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
|
|
|
+ global.enabledCrypto = true
|
|
|
+}else if (application == 'test') {
|
|
|
+ //测试环境
|
|
|
+ global.baseUrl = 'http://139.159.240.119:2366/'
|
|
|
+ global.WebSocketUrl = 'ws://139.159.240.119:2366/websocket/'
|
|
|
+ global.enabledCrypto = true
|
|
|
+}
|
|
|
|
|
|
-global.baseUrl = 'http://192.168.1.168:2366/'
|
|
|
-global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
|
|
|
-global.enabledCrypto = true
|
|
|
|
|
|
global.tokenUrl = global.baseUrl +
|
|
|
'blade-auth/oauth/token?tenantId=000000&password=21232f297a57a5a743894a0e4a801fc3&username=admin'
|