12345678910111213 |
- const express = require('express')
- const router = express.Router()
- router.post('/', async (req, res) => {
- let code = req.body.code
- if(code == req.session.emailtext) {
- res.status(200).send('验证码正确')
- }else {
- res.status(201).send('验证码错误')
- }
- })
- module.exports = router
|