This package has been deprecated

Author message:

please use @yidun/anticheat-sdk-node

yidun-anticheat-node-sdk

1.0.0 • Public • Published

反作弊纯服务端 Node SDK

安装

npm install yidun-anticheat-node-sdk --save

使用

const AnticheatChecker = require('yidun-anticheat-node-sdk');
 
// type 可选值: 'login', 'register', 'activity', 分为对应登录保护,注册保护,营销反作弊
const checker = new AnticheatChecker('you type', {
  secretId: 'your secret id',
  secretKey: 'your secret key',
  businessId: 'your business id'
});
 
// 业务数据详见:http://support.dun.163.com/documents/15588071870066688?docId=150457664094261248
// 其中:ip, account,phone,runEnv,operatingTime 是必填字段
checker.check({
  ip: 'user ip',
  account: md5('user account'),
  phone: md5('user phone'),
  runEnv: 2, // 应用运行环境
  operatingTime: 'user operating time'
}, (error, data) => {
  console.log(error, data);
});

/yidun-anticheat-node-sdk/

    Package Sidebar

    Install

    npm i yidun-anticheat-node-sdk

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.51 kB

    Total Files

    6

    Last publish

    Collaborators

    • hzzly
    • zhaoxuhui
    • vortesnail
    • gssify
    • yidunfe
    • hcyang
    • liulingfeng
    • luolihao