mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-18 07:44:38 +08:00
红旗汽车:增加积分查询
This commit is contained in:
70
hqkj.js
70
hqkj.js
@@ -27,7 +27,7 @@ async function start() {
|
|||||||
for (let user of $.userList) {
|
for (let user of $.userList) {
|
||||||
if (user.ckStatus) {
|
if (user.ckStatus) {
|
||||||
taskall.push(await user.task());
|
taskall.push(await user.task());
|
||||||
await $.wait(1000);
|
await $.wait(5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await Promise.all(taskall);
|
await Promise.all(taskall);
|
||||||
@@ -40,6 +40,7 @@ class UserInfo {
|
|||||||
this.ckStatus = true;
|
this.ckStatus = true;
|
||||||
this.postId = ""
|
this.postId = ""
|
||||||
this.articleStatus = false
|
this.articleStatus = false
|
||||||
|
this.userId = ""
|
||||||
this.postHeaders = {
|
this.postHeaders = {
|
||||||
"Host": "hqpp-gw.faw.cn",
|
"Host": "hqpp-gw.faw.cn",
|
||||||
"Connection": "keep-alive",
|
"Connection": "keep-alive",
|
||||||
@@ -63,20 +64,11 @@ class UserInfo {
|
|||||||
}
|
}
|
||||||
async task() {
|
async task() {
|
||||||
$.DoubleLog(`------第[${this.index}]个账号------`);
|
$.DoubleLog(`------第[${this.index}]个账号------`);
|
||||||
await this.postArticle()
|
await this.user_point()
|
||||||
if (this.articleStatus == true) {
|
if (this.ckStatus == true) {
|
||||||
await $.wait(8000)
|
|
||||||
await this.user_info()
|
|
||||||
if (this.postId !== "") {
|
|
||||||
//await this.comment()
|
|
||||||
await this.forward()
|
|
||||||
await this.deleteArticle()
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
await this.postArticle()
|
await this.postArticle()
|
||||||
if (this.articleStatus == true) {
|
if (this.articleStatus == true) {
|
||||||
await $.wait(8000)
|
await $.wait(8000)
|
||||||
await this.user_info()
|
|
||||||
if (this.postId !== "") {
|
if (this.postId !== "") {
|
||||||
//await this.comment()
|
//await this.comment()
|
||||||
await this.forward()
|
await this.forward()
|
||||||
@@ -84,18 +76,30 @@ class UserInfo {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await this.postArticle()
|
await this.postArticle()
|
||||||
await $.wait(8000)
|
if (this.articleStatus == true) {
|
||||||
await this.user_info()
|
await $.wait(8000)
|
||||||
if (this.postId !== "") {
|
await this.user_info()
|
||||||
//await this.comment()
|
if (this.postId !== "") {
|
||||||
await this.forward()
|
//await this.comment()
|
||||||
await this.deleteArticle()
|
await this.forward()
|
||||||
|
await this.deleteArticle()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
await this.postArticle()
|
||||||
|
await $.wait(8000)
|
||||||
|
await this.user_info()
|
||||||
|
if (this.postId !== "") {
|
||||||
|
//await this.comment()
|
||||||
|
await this.forward()
|
||||||
|
await this.deleteArticle()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async hitokoto() {
|
async hitokoto() {
|
||||||
@@ -198,7 +202,7 @@ class UserInfo {
|
|||||||
let options = {
|
let options = {
|
||||||
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/square/post/${this.postId}?_method=DELETE&_timestamp=${Date.now()}`,
|
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/square/post/${this.postId}?_method=DELETE&_timestamp=${Date.now()}`,
|
||||||
headers: this.postHeaders,
|
headers: this.postHeaders,
|
||||||
body: JSON.stringify({})
|
body: " "
|
||||||
},
|
},
|
||||||
result = await httpRequest(options);
|
result = await httpRequest(options);
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
@@ -215,12 +219,34 @@ class UserInfo {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//个人主页
|
||||||
|
async user_point() {
|
||||||
|
try {
|
||||||
|
let options = {
|
||||||
|
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/credits/userCredits/?_timestamp=${Date.now()}`,
|
||||||
|
headers: this.getHeaders,
|
||||||
|
},
|
||||||
|
result = await httpRequest(options);
|
||||||
|
//console.log(options);
|
||||||
|
//console.log(result);
|
||||||
|
if (result.code == 200) {
|
||||||
|
this.ckStatus = true
|
||||||
|
this.userId = result.data.userId
|
||||||
|
$.DoubleLog(`✅账号[${this.index}] [${result.data.nickname}][${result.data.amount}]分🎉`);
|
||||||
|
} else {
|
||||||
|
this.ckStatus = false
|
||||||
|
$.DoubleLog(`❌账号[${this.index}] 获取个人发表文章失败`);
|
||||||
|
//console.log(result);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
//个人主页
|
//个人主页
|
||||||
async user_info() {
|
async user_info() {
|
||||||
try {
|
try {
|
||||||
let options = {
|
let options = {
|
||||||
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/square/post/user?_timestamp=${Date.now()}&pageNo=1&pageSize=20&userId=5956965`,
|
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/square/post/user?_timestamp=${Date.now()}&pageNo=1&pageSize=20&userId=${this.userId}`,
|
||||||
headers: this.getHeaders,
|
headers: this.getHeaders,
|
||||||
},
|
},
|
||||||
result = await httpRequest(options);
|
result = await httpRequest(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user