diff --git a/config/index.js b/config/index.js index d928392..6084326 100644 --- a/config/index.js +++ b/config/index.js @@ -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' let BASE_URL = '' let SERVICE_URL = '' @@ -16,7 +8,7 @@ if (NODE_ENV === 'development' || NODE_ENV === 'test') { SERVICE_WS_URL = 'wss://service-test.xdd618.com/ws' } 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_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 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 WX_LIVE_APPID = "wx2b03c6e691cd7370";