MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / updateUserWatchDuration

Method updateUserWatchDuration

wxapp/niuniuduanju.js:415–430  ·  view source on GitHub ↗
(videoSec, lookVideoSec)

Source from the content-addressed store, hash-verified

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();

Callers 1

Calls 4

getUserInfoMethod · 0.95
requestMethod · 0.95
randomUserNameFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected