|
@@ -1,5 +1,5 @@
|
|
|
//index 0开发环境 1测试环境 2正式环境
|
|
|
-const index = 0,
|
|
|
+const index = 2,
|
|
|
api = {
|
|
|
login: 'auth/login_by_weixin', //登录
|
|
|
getMyPrivateMsgCount: 'message/getMyPrivateMsgCount', //加载是否有未读消息
|
|
@@ -96,7 +96,7 @@ const index = 0,
|
|
|
[oneportal, root] =
|
|
|
[["http://192.168.100.234:8080/oneportal/", "https://zhll.dgtis.com/wx/"],
|
|
|
["http://192.168.100.254:9082/wx/", "https://zhll.dgtis.com/wx/"],
|
|
|
- ["https://zhll.dgtis.com/wx/", "https://zhll.dgtis.com/wx/"]][index]
|
|
|
+ ["https://dorm.dgtis.com/oneportal/", "https://zhll.dgtis.com/wx/"]][index]
|
|
|
Object.keys(api).forEach(x => {
|
|
|
let v = api[x]
|
|
|
api[x] = `${/\.if$/.test(v) ? oneportal : root}${v}`
|