mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-19 16:24:37 +08:00
红旗空间:修复删除文章
This commit is contained in:
19
hqkj.js
19
hqkj.js
@@ -4,8 +4,9 @@
|
|||||||
* Show:
|
* Show:
|
||||||
* 变量名:hqkj
|
* 变量名:hqkj
|
||||||
* 变量值:https://hqpp-gw.faw.cn/gimc-hongqi-webapp headers中cookie中JSESSIONID=后面的值
|
* 变量值:https://hqpp-gw.faw.cn/gimc-hongqi-webapp headers中cookie中JSESSIONID=后面的值
|
||||||
* scriptVersionNow = "0.0.1";
|
* scriptVersionNow = "0.0.2";
|
||||||
* 每天积分
|
* 每天积分
|
||||||
|
* 修复删除文章
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("红旗空间-红旗智联小程序");
|
const $ = new Env("红旗空间-红旗智联小程序");
|
||||||
@@ -14,7 +15,7 @@ const Notify = 1; //0为关闭通知,1为打开通知,默认为1
|
|||||||
let envSplitor = ["@", "\n"]; //多账号分隔符
|
let envSplitor = ["@", "\n"]; //多账号分隔符
|
||||||
let strSplitor = '&'; //多变量分隔符
|
let strSplitor = '&'; //多变量分隔符
|
||||||
|
|
||||||
let scriptVersionNow = "0.0.1";
|
let scriptVersionNow = "0.0.2";
|
||||||
|
|
||||||
|
|
||||||
async function start() {
|
async function start() {
|
||||||
@@ -73,6 +74,7 @@ class UserInfo {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await this.postArticle()
|
await this.postArticle()
|
||||||
|
if (this.articleStatus == true) {
|
||||||
await $.wait(8000)
|
await $.wait(8000)
|
||||||
await this.user_info()
|
await this.user_info()
|
||||||
if (this.postId !== "") {
|
if (this.postId !== "") {
|
||||||
@@ -80,6 +82,17 @@ class UserInfo {
|
|||||||
await this.forward()
|
await this.forward()
|
||||||
await this.deleteArticle()
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -183,7 +196,7 @@ class UserInfo {
|
|||||||
async deleteArticle() {
|
async deleteArticle() {
|
||||||
try {
|
try {
|
||||||
let options = {
|
let options = {
|
||||||
url: `https://hqpp-gw.faw.cn/gimc-hongqi-webapp/f/square/post/3492996?_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: JSON.stringify({})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user