environment.js 3.49 KB
import {
  envIndex
} from "~/config";

// console.log(envIndex, 'envIndex')

const secretKey_items = {
  ip: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  dev: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  uat: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  prod: {
    appKey: "d7ffc3346fc9a45bccaaa35300d59022",
    secret: "4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353",
  },
  preRelease: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  cdptest: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
};
const scrmSecretKey_items = {
  ip: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  dev: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  uat: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  prod: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  preRelease: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
  cdptest: {
    appKey: "48e5e13229b82c1b4e6e8c96151f0637",
    secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
  },
};
const domain_items = {
  ip: {
    // dj: 'http://192.168.1.165:8292',
    // dj: 'http://192.168.1.104:8292', //叶立庆
    // dj: "http://192.168.1.169:8292", //蔡远明
    dj: 'http://192.168.1.104:8292',//范富荣
    // dj: 'http://192.168.1.89:8292', //周杭
    // dj: 'http://192.168.1.76:8292', //璐琦
    // dj: 'http://192.168.1.111:8594',
    // dj: 'http://192.168.1.227:8292',//陈希
    // dj: 'http://192.168.1.67:8292',//周立明
    // dj: 'http://192.168.148.235:8292',// 熊正顺
    // dj: 'http://192.168.148.221:8292',
    // scrm: 'http://192.168.1.165:8292'
    scrm: "https://scrm.dev.glsx.com.cn",
  },
  dev: {
    dj: "http://dj.dev.glsx.com.cn",
    // dj: 'http://192.168.3.226:9711',
    scrm: "https://scrm.dev.glsx.com.cn",
    merchants: "http://rop-merchant.dev.glsx.com.cn",
    AI: 'http://192.168.3.191:7864',
  },

  uat: {
    dj: "https://dj.test.glsx.com.cn",
    scrm: "https://scrm.test.glsx.com.cn",
    AI: 'https://aipractice.test.glsx.com.cn',
    merchants: "https://rop-merchant.test.glsx.com.cn",
  },
  prod: {
    dj: "https://dj.glsx.com.cn",
    scrm: "https://scrm.glsx.com.cn",
    AI: 'https://aipractice.glsx.com.cn',
    merchants: "https://commodity.glsx.com.cn",
  },
  preRelease: {
    dj: "https://dj.beta.glsx.com.cn",
    scrm: "https://scrm.beta.glsx.com.cn",
    merchants: "https://rop-merchant.beta.glsx.com.cn",
    AI: 'https://aipractice.beta.glsx.com.cn',
  },
  cdptest: {
    dj: "https://cdptest.glsx.com.cn",
    scrm: "https://cdptest.glsx.com.cn",
  },
};

const target = ["ip", "dev", "uat", "prod", "preRelease", "cdptest"];

module.exports = {
  domain: domain_items[target[envIndex]],
  secretKey: {
    dj: secretKey_items[target[envIndex]],
    scrm: scrmSecretKey_items[target[envIndex]],
    merchants: scrmSecretKey_items[target[envIndex]],
    clue: scrmSecretKey_items[target[envIndex]]
  },
};