// 配置文件
let path, imPath, imWsPath, merchantPlatformUrl, h5Path

// 图片域名
const picDomain = "https://img.mall4j.com/";

//  ==============生产环境===============
if (process.env.NODE_ENV === 'production') {
  path = 'https://b2b2c-api.mall4j.com'
  // 客服api
  imPath = 'https://b2b2c-im.mall4j.com'
  // 客服ws
  imWsPath = 'wss://b2b2c-im.mall4j.com'
  // H5域名，用于生成二维码。移动端扫码后跳转的地址
  h5Path = 'https://h5.mall4j.com'
  // 商家管理后台地址
  merchantPlatformUrl = 'https://b2b2c-multishop.mall4j.com'
}

// ==============开发环境===============
if (process.env.NODE_ENV === 'development') {
  path = 'http://192.168.1.17:8086'
  // 客服api
  imPath = 'http://192.168.1.17:8089'
  // 客服ws
  imWsPath = 'ws://192.168.1.17:8089'
  // H5域名，用于生成二维码。移动端扫码后跳转的地址
  h5Path = 'https://h5.mall4j.com'
  // 商家管理后台地址
  merchantPlatformUrl = 'https://b2b2c-multishop.mall4j.com'
}


module.exports = {
  path,
  imPath,
  imWsPath,
  picDomain,
  h5Path,
  merchantPlatformUrl
}
