From 7de68ef749dc128803dced3d9743549f62518fc8 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Wed, 28 Oct 2020 21:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A9=E9=98=B5=E7=BC=96=E8=BE=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/project/prepare.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/project/prepare.js b/routes/project/prepare.js index 3976300..6d58312 100644 --- a/routes/project/prepare.js +++ b/routes/project/prepare.js @@ -147,6 +147,7 @@ router.get('/matrix/:id', function (req, res, next) { return possibility }, 'level|3-5':[{ + id:/\d{3}/, //Code code:/\d{1}/, //颜色 @@ -197,4 +198,9 @@ router.post('/matrix', function (req, res, next) { res.json(data) }) +router.put('/matrix/:id', multipartMiddleware,function (req, res, next) { + var data=mock.ok(`矩阵坐标(${+req.body.y+1},${+req.body.x+1})更新风险等级成功`) + res.json(data) +}) + module.exports=router \ No newline at end of file