广汽传祺

修复小BUG
This commit is contained in:
smallfawn
2023-11-22 17:50:35 +08:00
committed by GitHub
parent cc6a105165
commit 5f56905197

View File

@@ -127,7 +127,7 @@ class UserInfo {
await this._signIn() await this._signIn()
} }
await this._taskList() await this._taskList()
if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum > 1 || this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum > 1) { if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum >= 1 || this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum >= 1) {
if (process.env["gacmotorPost"] == "true" || process.env["gacmotorComment"] == "true") { if (process.env["gacmotorPost"] == "true" || process.env["gacmotorComment"] == "true") {
console.log(`正在远程获取15条随机评论~请等待15-20秒`) console.log(`正在远程获取15条随机评论~请等待15-20秒`)
await this._getText() await this._getText()
@@ -136,7 +136,7 @@ class UserInfo {
if (process.env["gacmotorPost"] == "true") { if (process.env["gacmotorPost"] == "true") {
console.log(`已设置发帖功能`); console.log(`已设置发帖功能`);
if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum > 1) { if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum >= 1) {
await this._post(this.titleList[0], this.contentList[0])//可能需要图片 await this._post(this.titleList[0], this.contentList[0])//可能需要图片
console.log(`等待30s`) console.log(`等待30s`)
await $.wait(30000) await $.wait(30000)
@@ -148,7 +148,7 @@ class UserInfo {
} }
await this._applatestlist() await this._applatestlist()
if (this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum > 1) { if (this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum >= 1) {
for (let postId of this.applatestlist) { for (let postId of this.applatestlist) {
await this._forward(postId) await this._forward(postId)
} }
@@ -156,7 +156,7 @@ class UserInfo {
if (process.env["gacmotorComment"] == "true") { if (process.env["gacmotorComment"] == "true") {
console.log(`已设置评论功能`); console.log(`已设置评论功能`);
if (this.commentNotFinishedNum !== 0 && this.commentNotFinished > 1) { if (this.commentNotFinishedNum !== 0 && this.commentNotFinished >= 1) {
for (let postId of this.applatestlist) { for (let postId of this.applatestlist) {
await this._add(postId, this.titleList[0]) await this._add(postId, this.titleList[0])
} }
@@ -165,7 +165,7 @@ class UserInfo {
} }
if (process.env["gacmotorComment"] == "true") { if (process.env["gacmotorComment"] == "true") {
if (this.commentNotFinishedNum !== 0 && this.commentNotFinished > 1) { if (this.commentNotFinishedNum !== 0 && this.commentNotFinished >= 1) {
console.log(`等待15s`) console.log(`等待15s`)
await $.wait(15000) await $.wait(15000)
console.log(`检测评论列表`); console.log(`检测评论列表`);