球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
816 B

3 years ago
  1. module.exports = (() => {
  2. const config = exports = {}
  3. config.mode = {
  4. app: '/app', //APP功能模块
  5. }
  6. config.tenantId = "000000" // 管理组租户编号
  7. config.tokenHeader = 'Blade-Auth'
  8. config.clientId = 'weixin' // 客户端id
  9. config.clientSecret = 'weixin_secret' // 客户端密钥
  10. config.Authorization = 'c2FiZXI6c2FiZXJfc2VjcmV0' // 客户端id和客户端密钥联合进行base64转码生成的加密字符串
  11. config.Timeout = 10000 // 请求超时时间,单位 ms
  12. // 基础服务器地址
  13. // config.BASE_URL = 'http://localhost:8000' // 开发环境
  14. config.BASE_URL = 'https://qxk.leadfyy.com' // 开发环境
  15. // config.BASE_URL = '' // 生产环境
  16. if(process.env.NODE_ENV === 'production'){
  17. config.BASE_URL = ''; // 发行时固定生产环境
  18. }
  19. return {
  20. ...config
  21. }
  22. })()