const express = require('express') const router = express.Router() router.post('/', async (req, res) => { if (req.body.code == req.session.code) { res.status(201).send({ code: 'ok' }) } else { res.status(202).send({ err: '验证码错误' }) } }) module.exports = router