export const ENV_CONFIG = window.__GDY_ENV_CONFIG__

const protocol = window.location.protocol

export default {
  goDomain: `//${ENV_CONFIG.GO_API_DOMAIN}/v1`,
  privateDomain: `//${ENV_CONFIG.PRIVATE_API_DOMAIN}/v1`,
  activityDomain: `//${ENV_CONFIG.ACTIVITY_API_DOMAIN}/v1`,
  voteDomain: `//${ENV_CONFIG.VOTE_API_DOMAIN}/v1`,
  defBanner: `//${ENV_CONFIG.OSS_DOMAIN}/common/img/lottery_banner_default_v2.png`,
  defShareImg: `${protocol || 'https:'}//${ENV_CONFIG.OSS_DOMAIN}/common/img/lottery.png`, // 必须带协议头，否则微信分享配置时无法生效
  ossImageServe: ENV_CONFIG.IS_PRIVATE ? '' : '?x-oss-process=style/mobilebackground',
  consolesDomain: `//${ENV_CONFIG.CONSOLES_API_DOMAIN}/v1`,
}
