Authored by htoooth

fix

... ... @@ -2,7 +2,6 @@
const imgCheckServiceModel = require('../models/imgcheck');
const request = require('request');
const config = global.yoho.config;
exports.get = (req, res, next) => {
let data = {
... ... @@ -31,8 +30,7 @@ exports.imgCheck = (req, res, next) => {
'X-request-ID': req.reqID || '',
'X-YOHO-IP': req.yoho.clientIp || '',
'X-Forwarded-For': req.yoho.clientIp || '',
'User-Agent': 'yoho/nodejs',
client_type: config.app
'User-Agent': 'yoho/nodejs'
}
}).pipe(res); // eslint-disable-line
}
... ...
... ... @@ -2,6 +2,7 @@
const PAGE = 'H5';
const logger = global.yoho.logger;
const serviceAPI = global.yoho.ServiceAPI.ApiUrl;
const config = global.yoho.config;
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
... ... @@ -16,7 +17,7 @@ module.exports = class extends global.yoho.BaseModel {
return Promise.resolve({
code: 200,
data: {
verifiedGraphicCode: `${serviceAPI}passport/img-check.jpg?udid=${udid}&fromPage=${PAGE}`
verifiedGraphicCode: `${serviceAPI}passport/img-check.jpg?udid=${udid}&fromPage=${PAGE}&client_type=${config.app}`
}
});
}
... ...