Authored by shuaiguo

fix(验证码中间件): zk默认开关为关

@@ -30,9 +30,9 @@ let captchaReq = new models.DescribeCaptchaResultRequest(); @@ -30,9 +30,9 @@ let captchaReq = new models.DescribeCaptchaResultRequest();
30 */ 30 */
31 module.exports = function(req, res, next) { 31 module.exports = function(req, res, next) {
32 32
33 - const isClosedCaptcha = _.get(req.app.locals.wap, 'ufo.coupon', false); 33 + const isOpenCaptcha = _.get(req.app.locals.wap, 'ufo.coupon', false);
34 34
35 - if (isClosedCaptcha) { 35 + if (!isOpenCaptcha) {
36 return next(); 36 return next();
37 } 37 }
38 38