prod.env.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. 'use strict'
  2. const findServer = require('../findAddr')
  3. // /** 正式服务器地址 */
  4. // const PROD_HOST = "wyservice.gzbfdc.com"
  5. // /** 正式服务器端口号 */
  6. // const PROD_PORT = 5008
  7. /** 测试服务器地址 */
  8. const PROD_HOST = 'http://csms.cfldcn.com'
  9. /** 测试服务器端口号 */
  10. const PROD_PORT = 0
  11. /** 微信首页地址 */
  12. const wechatRootUrl = "wechat/#/index"
  13. const currFile = __filename.split("/").pop()
  14. let serverConfig = {
  15. /**
  16. * 正式环境
  17. * 【注】如果没有端口号,port填null
  18. */
  19. /** 报事报修地址 */
  20. crm400: {
  21. addr: PROD_HOST,
  22. port: PROD_PORT,
  23. path: '/landcrm'
  24. },
  25. /** 商城地址 */
  26. walter: {
  27. addr: PROD_HOST,
  28. port: PROD_PORT,
  29. path: '/community'
  30. },
  31. /** 会所接口地址 */
  32. club: {
  33. addr: PROD_HOST,
  34. port: PROD_PORT,
  35. path: '/community'
  36. },
  37. /** 微信运营-管家地址 */
  38. houserkeep: {
  39. addr: PROD_HOST,
  40. port: PROD_PORT,
  41. path: '/wxmanage/steward'
  42. },
  43. /** 微信运营-活动地址 */
  44. activity: {
  45. addr: PROD_HOST,
  46. port: PROD_PORT,
  47. path: '/wxmanage/activity'
  48. },
  49. /** 微信运营-公告 */
  50. article: {
  51. addr: PROD_HOST,
  52. port: PROD_PORT,
  53. path: '/wxmanage/media'
  54. },
  55. /** 微信运营-管家 */
  56. steward: {
  57. addr: PROD_HOST,
  58. port: PROD_PORT,
  59. path: '/wxmanage/steward'
  60. },
  61. /** 微信运营-问卷调查 */
  62. question: {
  63. addr: PROD_HOST,
  64. port: PROD_PORT,
  65. path: '/wxmanage/question'
  66. },
  67. /** 收费 */
  68. charge: {
  69. addr: PROD_HOST,
  70. port: PROD_PORT,
  71. path: '/voucher'
  72. },
  73. /** 用餐预定、会议室预定 */
  74. activiti: {
  75. addr: PROD_HOST,
  76. port: PROD_PORT,
  77. path: '/activiti'
  78. },
  79. /** 装修申请 */
  80. decorationManage: {
  81. addr: PROD_HOST,
  82. port: PROD_PORT,
  83. path: '/decorationManage'
  84. },
  85. /** 物品放行 */
  86. itemPassport: {
  87. addr: PROD_HOST,
  88. port: PROD_PORT,
  89. path: '/decpassManagement'
  90. },
  91. /** 物品放行 */
  92. itemHouse: {
  93. addr: PROD_HOST,
  94. port: PROD_PORT,
  95. path: '/wf'
  96. },
  97. /** 尾房 */
  98. gf: {
  99. addr: PROD_HOST,
  100. port: PROD_PORT,
  101. path: '/gf'
  102. },
  103. }
  104. module.exports = {
  105. NODE_ENV: '"production"',
  106. domain: JSON.stringify(PROD_HOST),
  107. wxRootUrl: JSON.stringify(wechatRootUrl),
  108. currProjectName: '"xingfujiye"',
  109. hostConfig: JSON.stringify(serverConfig),
  110. findAddr: findServer,
  111. Url:JSON.stringify(PROD_HOST)
  112. }