...
|
...
|
@@ -185,7 +185,11 @@ exports.indexCheck = (req, res, next) => { |
|
|
return em.emit('reject', Object.assign(errorData, { message: '请填写手机号'}));
|
|
|
} else if (!captcode) {
|
|
|
return em.emit('reject', Object.assign(errorData, {message: '请填写验证码'}));
|
|
|
} else if (!(captcodeValid && captcode === captcodeValid) || testCode !== config.testCode) {
|
|
|
} else if (
|
|
|
!(
|
|
|
(captcodeValid && captcode === captcodeValid) || (testCode === config.testCode)
|
|
|
)
|
|
|
) {
|
|
|
return em.emit('reject', Object.assign(errorData, {message: '请将图片旋转到正确位置'}));
|
|
|
}
|
|
|
|
...
|
...
|
|