environment.js 1.32 KB
/*
 * @Description: 
 * @Author: huyue
 * @Date: 2022-12-09 13:58:15
 * @LastEditors: huyue
 * @LastEditTime: 2022-12-09 13:59:57
 */
const target = ["ip", "dev", "uat", "beta", "prod"];
/**
 * 
0本地 
1开发 
2测试
3预发布
4生产
 */
const index = 2;
const secretKey = {
  ip: {},
  dev: {
    sso: {
      appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
      secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
    },
  },
  uat: {
    sso: {
      appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
      secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
    },
  },
  beta: {
    sso: {
      appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
      secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
    },
  },
  prod: {
    sso: {
      appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
      secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
    },
  },
}[target[index]];

const domain = {
  ip: "http://192.168.3.181:8394",
  dev: "https://scrm.dev.glsx.com.cn",
  uat: "https://scrm.test.glsx.com.cn",
  beta: "https://scrm.beta.glsx.com.cn",
  prod: "https://scrm.glsx.com.cn",
}[target[index]];

const pathEnum = {
  sso: "/rop-scrm-sso/",
  wechat: "/rop-scrm-wechat/",
  business: "/rop-scrm-entmicro/",
  busassistant: '/rop-scrm-busassistant/'
};
module.exports = {
  index,
  domain,
  pathEnum,
  secretKey,
};