Authored by shuaiguo

feat: 增加zk

... ... @@ -2,7 +2,7 @@
/* eslint-disable quotes */
"use strict";
const _ = require('lodash');
const tencentcloud = require('tencentcloud-sdk-nodejs');
const CaptchaClient = tencentcloud.captcha.v20190722.Client;
... ... @@ -30,6 +30,12 @@ let captchaReq = new models.DescribeCaptchaResultRequest();
*/
module.exports = function(req, res, next) {
const isClosedCaptcha = _.get(req.app.locals.wap, 'ufo.coupon', false);
if (isClosedCaptcha) {
return next();
}
if (req.query.coupontype === 'ufo') {
const params = {
AppSecretKey,
... ...