environment.js 1.83 KB
const target = ['ip', 'dev', 'uat', 'prod']

/**
 * 
0本地 
1开发 
2测试
3生产
 */
const index = 1
const secretKey = {
  ip: {},
  dev: {
    sso: {
      appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
      secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
    }
  },
  uat: {
    
    sso: {
      appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
      secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
    }
  },
  prod: {
    sso: {
      appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
      secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
    }
  }
}[target[index]]

const domain = {
  // ip: 'http://192.168.2.94:8558',
  // ip: 'http://192.168.2.3:8315',
  ip: 'http://192.168.1.170:8315',
  /**登录: 192.168.2.3:8315
  商城: 192.168.2.3:8558 */
  dev: 'https://scrm.dev.glsx.com.cn',
  uat: 'https://scrm.test.glsx.com.cn',
//   uat: 'https://scrm.beta.glsx.com.cn',
  prod: 'https://scrm.glsx.com.cn'
}[target[index]]

const pathEnum = {
  sso: '/rop-scrm-sso/',
  shopmall: '/rop-scrm-shopmall/',
  coupon: '/rop-scrm-coupon/',
  carlife: '/rop-scrm-carlife/',
  live: '/rop-scrm-live/',
  equity: '/rop-scrm-equity/',
  entmicro: '/rop-scrm-entmicro/',
  wechat: '/rop-scrm-wechat/',
  boutiquecoupon: '/rop-scrm-boutiquecoupon/',
  material: '/rop-scrm-marketing/', //素材
  sop: '/rop-scrm-sop/',
  customercollect: '/rop-scrm-bigdatautil/',
  drac: '/rop-scrm-entmicro/',
  withdrawal:'/rop-scrm-stoassistant/',
  score:'/rop-scrm-stoassistant/',
  stoassistant: '/rop-scrm-stoassistant/',
  assistant: '/rop-scrm-stoassistant/',
  mission: '/rop-scrm-stoassistant/',
  busassistant: '/rop-scrm-busassistant/'
}
const defaultMerchantId = {
  ip: '44184606',
  dev: '44184606',
  uat: '44184606',
  
  prod: '44189923'
}[target[index]]
module.exports = {
  index,
  domain,
  pathEnum,
  secretKey,
  defaultMerchantId
}