...
|
...
|
@@ -24,7 +24,15 @@ exports.imgCheck = (req, res, next) => { |
|
|
|
|
|
return req.ctx(imgCheckServiceModel).gen(udid).then(result => {
|
|
|
if (result.code === 200 && result.data) {
|
|
|
return request(result.data.verifiedGraphicCode).pipe(res); // eslint-disable-line
|
|
|
return request({
|
|
|
url: result.data.verifiedGraphicCode,
|
|
|
headers: {
|
|
|
'X-request-ID': req.reqID || '',
|
|
|
'X-YOHO-IP': req.yoho.clientIp || '',
|
|
|
'X-Forwarded-For': req.yoho.clientIp || '',
|
|
|
'User-Agent': 'yoho/nodejs'
|
|
|
}
|
|
|
}).pipe(res); // eslint-disable-line
|
|
|
}
|
|
|
next();
|
|
|
}).catch(next);
|
...
|
...
|
|