config.js 2.37 KB
const app_version = '1.1.5'
const build_code = 1000
const private_key = 'b43890b0a296ff3c7b8c260ca763980b'
const appid = 'wxc677c88385762287'
export default {
  development: {
    domains: {
       // test
      api: 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway',
      yohoApi: 'http://api-test3.dev.yohocorp.com',
      yohoLogin: 'http://api-test3.dev.yohocorp.com',
      activityHost: 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com',
      reportHost: 'https://app.yoho.cn/collect/v3',
      yasHost: 'https://analysis.yohobuy.com/yas_mobile'

      // production
      // api: 'https://2.yohobuy.com',
      // yohoApi: 'https://api.yoho.cn',
      // yohoLogin: 'https://api.yoho.cn',
      // activityHost: 'https://action.yoho.cn',
      // reportHost: 'https://app.yoho.cn/collect/v3',
      // yasHost: 'https://analysis.yohobuy.com/yas_mobile'
      
      // grey
      // api: 'http://2.yohobuy.com',
      // yohoApi: 'http://54.223.33.55',
      // yohoLogin: 'http://54.223.33.55',
      // activityHost: 'https://action.yoho.cn',
      // reportHost: 'https://app.yoho.cn/collect/v3',
      // yasHost: 'https://analysis.yohobuy.com/yas_mobile'
    },
    apiParams: {
      client_type: 'miniapp',
      private_key: private_key,
      app_version: app_version,
      // miniapp_version: '0.0.1',
      source_type: 'wechat',
      user_source: 'wechat',
      business_line: 'miniappUFO',
    },
    unionType: '', // 渠道号
    // MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
    appid: appid,
    business_line: 'miniappUFO', // 业务线
    mini_app_type: '63',
  },
  production: {
    domains: {
      // production
      api: 'https://2.yohobuy.com',
      yohoApi: 'https://api.yoho.cn',
      yohoLogin: 'https://api.yoho.cn',
      activityHost: 'https://action.yoho.cn',
      reportHost: 'https://app.yoho.cn/collect/v3',
      yasHost: 'https://analysis.yohobuy.com/yas_mobile'
    },
    apiParams: {
      client_type: 'miniapp',
      private_key: private_key,
      app_version: app_version,
      // miniapp_version: '1.0.0',
      source_type: 'wechat',
      user_source: 'wechat',
      business_line: 'miniappUFO',
      build_code: build_code,
    },
    unionType: '', // 渠道号
    // MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
    appid: appid,
    business_line: 'miniappUFO', // 业务线
    mini_app_type: '63',
  }
}[process.env.NODE_ENV];