(lookDayVideoNum, lookVideoNum)
| 430 | } |
| 431 | |
| 432 | async updateUserWatchCount(lookDayVideoNum, lookVideoNum) { |
| 433 | const userInfo = await this.getUserInfo(); |
| 434 | await this.request({ |
| 435 | method: "POST", |
| 436 | apiPath: "/app/user/updateUsers", |
| 437 | json: true, |
| 438 | data: { |
| 439 | userName: userInfo.userName || randomUserName(), |
| 440 | avatar: userInfo.avatar || "https://nnduanju.oss-cn-beijing.aliyuncs.com/01image/re-512.png", |
| 441 | phone: userInfo.phone || "", |
| 442 | lookDayVideoNum, |
| 443 | lookVideoNum, |
| 444 | }, |
| 445 | }); |
| 446 | $.log(`账号[${this.index}] 模拟观看视频次数: ${lookDayVideoNum}次`); |
| 447 | } |
| 448 | |
| 449 | async getUserDataVideoParams() { |
| 450 | try { |
no test coverage detected