增加维护页面

master
pan 4 years ago
parent 8ed06c2ff3
commit f6cb202389
  1. 10
      routes/index.js

@ -90,12 +90,12 @@ router.post('/deploy', function(req, res, next) {
});
//部署完毕事件
router.get('/finsh', function(req, res, next) {
if(req.query.name in startDeploy) {
let deployInfo=startDeploy[req.query.name]
dingding(`${req.query.name}|${deployInfo.description}自动部署成功,花费时间:${moment().diff(deployInfo.startTime, 'seconds', true)}`)
router.post('/finsh', function(req, res, next) {
if(req.params.name in startDeploy) {
let deployInfo=startDeploy[req.params.name]
dingding(`${req.params.name}|${deployInfo.description}自动部署成功,花费时间:${moment().diff(deployInfo.startTime, 'seconds', true)}`)
}
res.json({message:`仓库代码${req.query.name}部署成功`})
res.json({message:`仓库代码${req.params.name}部署成功`})
});
//部署期间显示部署页面

Loading…
Cancel
Save