12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /**
- * Created by MyPC on 2019/11/5.
- */
- var express = require('express');
- var router = express.Router();
- var cloudController=require('./controller/cloudEditionController');
- /**
- * 养护云版
- */
- router.get('/cloud/curing/edition', function(req, res, next) {
-
-
-
- //测试服务器
- //global.CLOUDURL= ="https://yhuat.smartcost.com.cn/cld";
- //正式服务器
- //global.CLOUDURL= ='https://yhyun.smartcost.com.cn/cld';
- //本地跑
- setCloudUrl("http://qa.smartcost.com.cn:2060/cld");
-
-
-
- cloudController.curingEdition(req, res);
- });
- /**
- * 大司空云计价
- */
- router.get('/cloud/building/edition', function(req, res, next) {
-
- //测试服务器
- //global.CLOUDURL= ="https://yhuat.smartcost.com.cn/cld";
- //正式服务器
- //global.CLOUDURL= ='https://yhyun.smartcost.com.cn/cld';
- //本地跑
- setCloudUrl("http://qa.smartcost.com.cn:6060/cld");
-
- cloudController.curingEdition(req, res);
- });
- module.exports = router;
- /**
- * 设置云版接口地址
- */
- function setCloudUrl(url){
- global.CLOUDURL =url;
- }
|