...
|
...
|
@@ -9,11 +9,12 @@ const Geetest = require('../models/captcha-gee-service'); |
|
|
|
|
|
const config = global.yoho.config;
|
|
|
const logger = global.yoho.logger;
|
|
|
const CAPTCHA = config.UNIVERSAL_CAPTCHA;
|
|
|
|
|
|
// const CAPTCHA = config.UNIVERSAL_CAPTCHA;
|
|
|
|
|
|
// 对比函数
|
|
|
const _mustEqual = (req) => {
|
|
|
return req.body.verifyCode === CAPTCHA;
|
|
|
const _mustEqual = () => {
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
var pcGeetest = new Geetest({
|
...
|
...
|
|