Authored by 郝肖肖

'已登录不加载极限验证'

... ... @@ -51,6 +51,10 @@ exports.check = (req, res, next) => {
};
exports.geetestLoad = (req, res, next) => {
if (req.user.uid) {
return next();
}
req.yoho.captchaShow = false;
res.locals.useGeetest = true;
... ... @@ -72,7 +76,7 @@ exports.geetestLoad = (req, res, next) => {
exports.geetestCheck = (req, res, next) => {
let testCode = req.body.yohobuy;
if (testCode === global.yoho.config.testCode) {
if (testCode === global.yoho.config.testCode || req.user.uid) {
return next();
}
... ...