check.js
556 Bytes
const PAGE = 'H5';
const logger = global.yoho.logger;
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
verifyImgCheckRisk(udid, degrees) {
return this.get({
data: {
method: 'app.graphic.verify',
udid: udid,
fromPage: PAGE,
degrees: degrees
}
}).then(result => {
logger.info(`app.graphic.verify result: ${JSON.stringify(result)}`);
return result;
});
}
};