• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • apps
  • 3party
  • models
  • check.js
  • api risk
    6f3a12e9
    by yyq
    2018-06-21 19:22:15 +0800  
    Browse Directory »
check.js 556 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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;
        });
    }
};