mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
Update lenovoapp.js
This commit is contained in:
@@ -28,7 +28,7 @@ class Task {
|
|||||||
}
|
}
|
||||||
async isSignIn() {
|
async isSignIn() {
|
||||||
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/getCheckInList?lenovoId=10219183246`)
|
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/getCheckInList?lenovoId=10219183246`)
|
||||||
console.log(result);
|
//console.log(result);
|
||||||
if (result.code == "0") {
|
if (result.code == "0") {
|
||||||
if (result.data.flag == !1) {
|
if (result.data.flag == !1) {
|
||||||
$.log(`✅账号[${this.index}] 今日未签到 =====> 签到ing🎉`)
|
$.log(`✅账号[${this.index}] 今日未签到 =====> 签到ing🎉`)
|
||||||
@@ -42,7 +42,7 @@ class Task {
|
|||||||
}
|
}
|
||||||
async checkIn() {
|
async checkIn() {
|
||||||
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/checkIn?lenovoId=10219183246&OSType=10011`)
|
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/checkIn?lenovoId=10219183246&OSType=10011`)
|
||||||
console.log(result);
|
//console.log(result);
|
||||||
if (result.code == "0") {
|
if (result.code == "0") {
|
||||||
$.log(`✅账号[${this.index}] 签到成功🎉`)
|
$.log(`✅账号[${this.index}] 签到成功🎉`)
|
||||||
} else {
|
} else {
|
||||||
@@ -52,12 +52,12 @@ class Task {
|
|||||||
}
|
}
|
||||||
async getUserTaskList() {
|
async getUserTaskList() {
|
||||||
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/getUserTaskList`)
|
let result = await this.taskRequest("post", `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/task/getUserTaskList`)
|
||||||
console.log(result);
|
//console.log(result);
|
||||||
if (result.code == "0") {
|
if (result.code == "0") {
|
||||||
$.log(`✅账号[${this.index}] 获取任务列表成功🎉`)
|
$.log(`✅账号[${this.index}] 获取任务列表成功🎉`)
|
||||||
for (let i = 0; i < result.data.length; i++) {
|
for (let i = 0; i < result.data.length; i++) {
|
||||||
let task = result.data[i];
|
let task = result.data[i];
|
||||||
if (task.taskState == 0) {
|
if (task.taskState == 0&&task.type !== 13) {
|
||||||
await $.wait(5000)
|
await $.wait(5000)
|
||||||
await this.doTask(task.taskId);
|
await this.doTask(task.taskId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user