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

Method updateUserWatchCount

wxapp/niuniuduanju.js:432–447  ·  view source on GitHub ↗
(lookDayVideoNum, lookVideoNum)

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 4

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

Tested by

no test coverage detected