setting.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * 全局变量配置
  3. */
  4. module.exports = {
  5. // 应用名
  6. name: 'tscloudywxt',
  7. // 应用logo,支持本地路径和网络路径
  8. logo: '/static/images/logo.png',
  9. // 版本号
  10. version: '1.0.0',
  11. // 客户端类型
  12. userType: 'app',
  13. // 开发环境接口Url
  14. devUrl: 'http://127.0.0.1:50004',
  15. //devUrl: 'http://111.204.228.227:50004',
  16. // 生产环境
  17. oss: 'https://wx.dahengsi.com:30001/oss/galaxy/',
  18. imgPath: 'https://wx.dahengsi.com:30001/img/',
  19. prodUrl: 'https://wx.dahengsi.com:30001/api',
  20. // 测试环境
  21. // oss: 'https://wx.dahengsi.com:44301/oss/galaxy/',
  22. // imgPath: 'https://wx.dahengsi.com:44301/img/',
  23. // prodUrl: 'https://wx.dahengsi.com:44301/api',
  24. // 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
  25. contentType: 'application/json;charset=UTF-8',
  26. // 后端返回状态码
  27. codeName: 'code',
  28. // 操作正常code
  29. successCode: 200,
  30. // 登录失效code
  31. invalidCode: 401,
  32. // 客户端ID
  33. clientId: 'tscloudywxt',
  34. // 客户端密钥
  35. clientSecret: 'tscloudywxt_secret_82828800',
  36. }