...
|
...
|
@@ -8,6 +8,7 @@ |
|
|
|
|
|
const CaptchaServiceModel = require('../models/captcha-img-service');
|
|
|
const request = require('request');
|
|
|
const config = global.yoho.config;
|
|
|
|
|
|
// 对比函数
|
|
|
const _mustEqualAsync = (req) => {
|
...
|
...
|
@@ -55,7 +56,8 @@ const generate = (req, res, next) => { |
|
|
'X-request-ID': req.reqID || '',
|
|
|
'X-YOHO-IP': req.yoho.clientIp || '',
|
|
|
'X-Forwarded-For': req.yoho.clientIp || '',
|
|
|
'User-Agent': 'yoho/nodejs'
|
|
|
'User-Agent': 'yoho/nodejs',
|
|
|
client_type: config.app
|
|
|
}
|
|
|
}).pipe(res);
|
|
|
}
|
...
|
...
|
|