cloudRouter.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Created by MyPC on 2019/11/5.
  3. */
  4. var express = require('express');
  5. var router = express.Router();
  6. var cloudController=require('./controller/cloudEditionController');
  7. /**
  8. * 养护云版
  9. */
  10. router.get('/cloud/curing/edition', function(req, res, next) {
  11. //测试�务�
  12. //global.CLOUDURL= ="https://yhuat.smartcost.com.cn/cld";
  13. //正��务�
  14. //global.CLOUDURL= ='https://yhyun.smartcost.com.cn/cld';
  15. //本地�
  16. setCloudUrl("http://qa.smartcost.com.cn:2060/cld");
  17. cloudController.curingEdition(req, res);
  18. });
  19. /**
  20. * 大�空云计价
  21. */
  22. router.get('/cloud/building/edition', function(req, res, next) {
  23. //测试�务�
  24. //setCloudUrl("https://yhuat.smartcost.com.cn/cld");
  25. //global.CLOUDURL= ="https://yhuat.smartcost.com.cn/cld";
  26. //正��务�
  27. //global.CLOUDURL= ='https://yhyun.smartcost.com.cn/cld';
  28. //本地�
  29. setCloudUrl("http://qa.smartcost.com.cn:6060/cld");
  30. cloudController.curingEdition(req, res);
  31. });
  32. module.exports = router;
  33. /**
  34. * 设置云版接�地�
  35. */
  36. function setCloudUrl(url){
  37. GCLOUDURL =url;
  38. }