/*
 * @Author: 陈剑宇
 * @Date: 2020-05-07 14:43:01
 * @LastEditTime: 2021-09-03 10:28:14
 * @LastEditors: wufan
 * @Description:
 * @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
 */
import { MapInterface } from '@/domains/basic-domain/interface'
import { path, live } from '@/domains/brand/constants'

// 默认是 dev 环境
const ENV: string = process.env.DEPLOY_ENV || 'dev'
console.log('process.env.DEPLOY_ENV', process.env, ENV, 'hjkkkk')
const BASIC_HOST_MAP: MapInterface = {
  dev: 'https://dev-heimdall.xiaomai5.com/',
  dev1: 'https://dev-heimdall.xiaomai5.com/',
  rc: 'https://rc-heimdall.xiaomai5.com/',
  gray: 'https://gray-heimdall.xiaomai5.com/',
  prod: 'https://gateway.xiaomai5.com/',
}
const PATH_MAP: MapInterface = {
  dev: 'https://dev.xiaomai5.com/xiaomai-cloud-class-web/h5.html',
  dev1: 'https://dev.xiaomai5.com/dev1/xiaomai-cloud-class-web/h5.html',
  rc: 'https://rc.xiaomai5.com/xiaomai-cloud-class-web/h5.html',
  gray: path + '/gray/h5.html',
  prod: path + '/h5.html',
}

export const YZ_APPId = "yozoqvpO2Hvz8346";
export const YZ_PREVIEW_URL: string = 'http://eic.yozocloud.cn/api/view/file'
export const OFFICE_PREVIEW_URL: string = 'https://view.officeapps.live.com/op/view.aspx'

// axios headers config
export const TIME_OUT: number = 20000
export const USER_TYPE: string = 'B'
export const PROJECT = 'xmzj-web-b'
export const VERSION = '5.4.8'
export const PREFIX = 'cloud-class'
export const USER_PREFIX = 'store-live'

// host
export const BASIC_HOST: string = BASIC_HOST_MAP[ENV]
export const PATH: string = PATH_MAP[ENV]

