12345678910111213141516171819202122 |
- const express = require('express')
- const router = express.Router()
- router.post('/', async (req, res) => {
- if(req.session.imgtext){
- if(req.session.imgtext == req.body.imgtexter){
- res.send({
- seccess: '验证码正确'
- })
- }else{
- res.status(202).send({
- err: '验证码错误'
- })
- }
- }else{
- res.status(203).send({
- err: '未获取验证码'
- })
- }
- })
- module.exports = router
|