...
|
...
|
@@ -47,7 +47,7 @@ const requiredAPI = (req, res, next) => { |
|
|
|
|
|
if (!verifyCode) {
|
|
|
return res.send({
|
|
|
code: 401,
|
|
|
code: 405,
|
|
|
message: '参数失效'
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -66,12 +66,12 @@ const requiredAPI = (req, res, next) => { |
|
|
if (err) {
|
|
|
res.send({
|
|
|
message: '网络失败',
|
|
|
code: 401
|
|
|
code: 405
|
|
|
});
|
|
|
} else if (!success) {
|
|
|
res.send({
|
|
|
message: '图形验证失败',
|
|
|
code: 401
|
|
|
code: 405
|
|
|
});
|
|
|
} else {
|
|
|
return next();
|
...
|
...
|
@@ -87,7 +87,7 @@ const checkAPI = (req, res) => { |
|
|
|
|
|
if (!verifyCode) {
|
|
|
return res.send({
|
|
|
code: 401,
|
|
|
code: 405,
|
|
|
message: '参数失效'
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -110,12 +110,12 @@ const checkAPI = (req, res) => { |
|
|
if (err) {
|
|
|
return res.send({
|
|
|
message: '网络失败',
|
|
|
code: 401
|
|
|
code: 405
|
|
|
});
|
|
|
} else if (!success) {
|
|
|
return res.send({
|
|
|
message: '图形验证失败',
|
|
|
code: 401
|
|
|
code: 405
|
|
|
});
|
|
|
} else {
|
|
|
return res.send({
|
...
|
...
|
|