index.js 2.12 KB
/**
 * BASE_API:api统一请求域名。(当前项目业务)
 * API_PREFIX:请求业务词头前缀,项目划分
 * COMMON_API:平台通用请求域名。(单/多文件上传,省市区联查,场景二维码/小程序码等)
 * IMG:oss图片地址前缀,用于访问
 * OSS_PATH:上传文件路径,用于上传  例如:'/weapp/xxx/'
 * MODULE_CODE:后端给出
 * RSA_PUBLIC_KEY:公钥
 * AES_IV:偏移量
 * IS_POST_ENC:post方法是否开启自动开启加密
 */


module.exports = {
  dev: {
    BASE_API: 'https://prettyapi.kdao.xin',
    // BASE_API: 'https://prettyapi.letterbelieve.com',
    // BASE_API: 'https://bizapi.kdao.xin',
    API_PREFIX: '/zwPrettyNumApi',
    COMMON_API: 'https://bizapi.kdao.xin',
    IMG: 'https://cdn.kdao.xin/cdn/images',
    OSS_PATH: '',
    MODULE_CODE: 'd00b70ed26ed4f1291eb870662270e77',
    RSA_PUBLIC_KEY: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq4U9ZijHk0bsHh5YvsQu7E9l/S9sqRLlbLhxmcgoTCcH5nO3S4//VZ/Ns2sxRwSWrsCxGr+tIPXBofJErGf3teqxAspca/1pjaWGB3fQ44Q0+OPwv1l7vWgn81tdMIMizjHu31vrUTlcL9UDHfoLB9vht3mtrYsc7xTi8MnHlkWx+VZv8uS06sLRJqCBiIzZcdB30szCjNtcSm1A2sV4EnBzqCQnR4/0Bd33UVRVdJLFcez5OfKqTi3HS65adf6U8LjOdw5rE+NNPNJmggVGlWVRyw9MSkjbYS9W4lpGul22rIKODkLFnqEtW8VcG/1dFCka1ykMADOII+YXr6GDHQIDAQAB',
    AES_IV: 'ce102d54b198462c',
    IS_POST_ENC: true,
  },
  prod: {
    BASE_API: 'https://prettyapi.kdao.xin',
    // BASE_API: 'https://prettyapi.letterbelieve.com',
    // BASE_API: 'https://bizapi.kdao.xin',
    API_PREFIX: '/zwPrettyNumApi',
    COMMON_API: 'https://bizapi.kdao.xin',
    IMG: 'https://cdn.kdao.xin/cdn/images',
    OSS_PATH: '',
    MODULE_CODE: 'd00b70ed26ed4f1291eb870662270e77',
    RSA_PUBLIC_KEY: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq4U9ZijHk0bsHh5YvsQu7E9l/S9sqRLlbLhxmcgoTCcH5nO3S4//VZ/Ns2sxRwSWrsCxGr+tIPXBofJErGf3teqxAspca/1pjaWGB3fQ44Q0+OPwv1l7vWgn81tdMIMizjHu31vrUTlcL9UDHfoLB9vht3mtrYsc7xTi8MnHlkWx+VZv8uS06sLRJqCBiIzZcdB30szCjNtcSm1A2sV4EnBzqCQnR4/0Bd33UVRVdJLFcez5OfKqTi3HS65adf6U8LjOdw5rE+NNPNJmggVGlWVRyw9MSkjbYS9W4lpGul22rIKODkLFnqEtW8VcG/1dFCka1ykMADOII+YXr6GDHQIDAQAB',
    AES_IV: 'ce102d54b198462c',
    IS_POST_ENC: true,
  }
}