Skip to content

Commit ba6917d

Browse files
author
ziye12
authored
企鹅读书 修正surge重写
1 parent 4b81f27 commit ba6917d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

qqread.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ http-request https:\/\/mqqapi\.reader\.qq\.com\/mqq\/addReadTimeWithBid? script-
6060
6161
6262
//企鹅读书获取时长cookie
63-
企鹅读书 = type=http-request,pattern=https:\/\/mqqapi\.reader\.qq\.com\/mqq\/addReadTimeWithBid? script-path=https://raw.githubusercontent.com/ziye12/JavaScript/master/qqread.js, requires-header=true
63+
企鹅读书 = type=http-request,pattern=https:\/\/mqqapi\.reader\.qq\.com\/mqq\/addReadTimeWithBid?,script-path=https://raw.githubusercontent.com/ziye12/JavaScript/master/qqread.js, requires-header=true
6464
6565
6666
@@ -199,7 +199,7 @@ qqreadconfig();//时长查询
199199
else if (i==2)
200200
qqreadtask();//任务列表
201201

202-
else if (i==3)
202+
else if (i==3&&task.data.taskList[0].doneFlag==0)
203203
qqreadsign();//金币签到
204204

205205
else if (i==4&&task.data.treasureBox.doneFlag==0)
@@ -208,7 +208,7 @@ qqreadbox();//宝箱
208208
else if (i==5&&task.data.taskList[2].doneFlag==0)
209209
qqreadssr1();//阅读金币1
210210

211-
else if (i==6)
211+
else if (i==6&&config.data.pageParams.todayReadSeconds/3600<=maxtime)
212212
qqreadtime();//上传时长
213213

214214
else if (i==7&&task.data.taskList[0].doneFlag==0)
@@ -409,9 +409,7 @@ return new Promise((resolve, reject) => {
409409
headers: JSON.parse(qqreadtimeheaderVal),
410410

411411
};
412-
413-
if (config.data.pageParams.todayReadSeconds/3600<=maxtime){
414-
412+
415413
$.get(toqqreadtimeurl,(error, response, data) =>{
416414
if(logs) $.log(`${jsname}, 阅读时长: ${data}`)
417415
time =JSON.parse(data)
@@ -422,8 +420,6 @@ tz+='【阅读时长】:上传'+TIME/6+'分钟\n'
422420

423421
resolve()
424422
})
425-
426-
}
427423
})
428424
}
429425

0 commit comments

Comments
 (0)