Feat:优惠券对接
This commit is contained in:
+22
-3
@@ -1,11 +1,30 @@
|
||||
// export const VUE_APP_API_URL = "https://shop.xdd618.com/api";
|
||||
export const VUE_APP_API_URL = "https://www.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 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";
|
||||
// export const SOCKET_URL = "wss://service.xdd618.com/ws";
|
||||
const NODE_ENV = process.env.VUE_APP_ENV || 'development'
|
||||
let BASE_URL = ''
|
||||
let SERVICE_URL = ''
|
||||
let SERVICE_WS_URL = ''
|
||||
if (NODE_ENV === 'development' || NODE_ENV === 'test') {
|
||||
BASE_URL = 'https://shop.xdd618.com/api'
|
||||
SERVICE_URL = 'https://service-test.xdd618.com/api'
|
||||
SERVICE_WS_URL = 'wss://service-test.xdd618.com/ws'
|
||||
}
|
||||
if (NODE_ENV === 'prod') {
|
||||
BASE_URL = 'https://www.xdd618.com/api'
|
||||
SERVICE_URL = 'https://service.xdd618.com/api'
|
||||
SERVICE_WS_URL = 'wss://service.xdd618.com/ws'
|
||||
}
|
||||
|
||||
export const VUE_APP_API_URL = BASE_URL
|
||||
export const SERVICE_API_URL = SERVICE_URL
|
||||
export const SOCKET_URL = SERVICE_WS_URL
|
||||
|
||||
|
||||
export const VUE_APP_RESOURCES_URL = "https://www.xdd618.com/api/file/pic";
|
||||
export const STATIC_RESOURCE_URL = "https://resource.xdd618.com/image"
|
||||
|
||||
Reference in New Issue
Block a user