Conf(接口):生产环境的后端服务地址切换为新地址
This commit is contained in:
+2
-10
@@ -1,11 +1,3 @@
|
|||||||
// export const VUE_APP_API_URL = "https://shop.xdd618.com/api";
|
|
||||||
// export const VUE_APP_API_URL = "https://www.xdd618.com/api";
|
|
||||||
|
|
||||||
// export const SERVICE_API_URL = "https://service-test.xdd618.com/api";
|
|
||||||
// export const SERVICE_API_URL = "https://service.xdd618.com/api";
|
|
||||||
|
|
||||||
// export const SOCKET_URL = "wss://service-test.xdd618.com/ws";
|
|
||||||
// export const SOCKET_URL = "wss://service.xdd618.com/ws";
|
|
||||||
const NODE_ENV = process.env.VUE_APP_ENV || 'development'
|
const NODE_ENV = process.env.VUE_APP_ENV || 'development'
|
||||||
let BASE_URL = ''
|
let BASE_URL = ''
|
||||||
let SERVICE_URL = ''
|
let SERVICE_URL = ''
|
||||||
@@ -16,7 +8,7 @@ if (NODE_ENV === 'development' || NODE_ENV === 'test') {
|
|||||||
SERVICE_WS_URL = 'wss://service-test.xdd618.com/ws'
|
SERVICE_WS_URL = 'wss://service-test.xdd618.com/ws'
|
||||||
}
|
}
|
||||||
if (NODE_ENV === 'prod') {
|
if (NODE_ENV === 'prod') {
|
||||||
BASE_URL = 'https://www.xdd618.com/api'
|
BASE_URL = 'https://wxapp.xdd618.com/api'
|
||||||
SERVICE_URL = 'https://service.xdd618.com/api'
|
SERVICE_URL = 'https://service.xdd618.com/api'
|
||||||
SERVICE_WS_URL = 'wss://service.xdd618.com/ws'
|
SERVICE_WS_URL = 'wss://service.xdd618.com/ws'
|
||||||
}
|
}
|
||||||
@@ -26,7 +18,7 @@ export const SERVICE_API_URL = SERVICE_URL
|
|||||||
export const SOCKET_URL = SERVICE_WS_URL
|
export const SOCKET_URL = SERVICE_WS_URL
|
||||||
|
|
||||||
|
|
||||||
export const VUE_APP_RESOURCES_URL = "https://www.xdd618.com/api/file/pic";
|
export const VUE_APP_RESOURCES_URL = "https://wxapp.xdd618.com/api/file/pic"
|
||||||
export const STATIC_RESOURCE_URL = "https://resource.xdd618.com/image"
|
export const STATIC_RESOURCE_URL = "https://resource.xdd618.com/image"
|
||||||
|
|
||||||
export const WX_LIVE_APPID = "wx2b03c6e691cd7370";
|
export const WX_LIVE_APPID = "wx2b03c6e691cd7370";
|
||||||
|
|||||||
Reference in New Issue
Block a user