From f6cb20238976c303800abcc77dd57c84e3fa0d55 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sun, 11 Oct 2020 04:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=B4=E6=8A=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/index.js b/routes/index.js index c994812..a8b0f84 100644 --- a/routes/index.js +++ b/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}部署成功`}) }); //部署期间显示部署页面