|
|
'use strict';
|
|
|
const PAGE = 'H5';
|
|
|
const logger = global.yoho.logger;
|
|
|
const serviceAPI = global.yoho.ServiceAPI.ApiUrl;
|
|
|
|
|
|
module.exports = class extends global.yoho.BaseModel {
|
...
|
...
|
@@ -11,6 +12,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
* 获取图片
|
|
|
*/
|
|
|
gen(udid) {
|
|
|
logger.info(`get verifiedGraphicCode: ${serviceAPI}passport/img-check.jpg?udid=${udid}&fromPage=${PAGE}`);
|
|
|
return Promise.resolve({
|
|
|
code: 200,
|
|
|
data: {
|
...
|
...
|
@@ -30,6 +32,9 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
fromPage: PAGE,
|
|
|
degrees: captcha
|
|
|
}
|
|
|
}).then(result => {
|
|
|
logger.info(`app.verified.graphic result: ${JSON.stringify(result)}`);
|
|
|
return result;
|
|
|
});
|
|
|
}
|
|
|
}; |
...
|
...
|
|