(videoSec, lookVideoSec)
| 413 | } |
| 414 | |
| 415 | async updateUserWatchDuration(videoSec, lookVideoSec) { |
| 416 | const userInfo = await this.getUserInfo(); |
| 417 | await this.request({ |
| 418 | method: "POST", |
| 419 | apiPath: "/app/user/updateUsers", |
| 420 | json: true, |
| 421 | data: { |
| 422 | userName: userInfo.userName || randomUserName(), |
| 423 | avatar: userInfo.avatar || "https://nnduanju.oss-cn-beijing.aliyuncs.com/01image/re-512.png", |
| 424 | phone: userInfo.phone || "", |
| 425 | videoSec, |
| 426 | lookVideoSec, |
| 427 | }, |
| 428 | }); |
| 429 | $.log(`账号[${this.index}] 模拟观看时长: ${Math.floor(videoSec / 60)}分钟`); |
| 430 | } |
| 431 | |
| 432 | async updateUserWatchCount(lookDayVideoNum, lookVideoNum) { |
| 433 | const userInfo = await this.getUserInfo(); |
no test coverage detected