| 49 | } |
| 50 | |
| 51 | async main(user: User) { |
| 52 | try { |
| 53 | this.user = user |
| 54 | let res: any |
| 55 | this.h5stTool = new H5ST('b63ff', this.user.UserAgent, this.fp, 'https://plus.m.jd.com/rights/windControl', 'https://plus.m.jd.com') |
| 56 | await this.h5stTool.__genAlgo() |
| 57 | res = await this.api('windControl_queryScore_v1', {}) |
| 58 | |
| 59 | console.log('综合:',res.rs.userSynthesizeScore.totalScore) |
| 60 | console.log('信用:', res.rs.userDimensionScore.baiScore) |
| 61 | console.log('购物合规:', res.rs.userDimensionScore.shop) |
| 62 | console.log('售后行为:', res.rs.userDimensionScore.active) |
| 63 | console.log('账户信息:', res.rs.userDimensionScore.accountInfo) |
| 64 | } catch (e) { |
| 65 | console.log(e.message) |
| 66 | } |
| 67 | await this.wait(3000) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | new jd_WindControl().init().then() |