Skip to content

Commit 07588d3

Browse files
author
ziye12
authored
Update qqreads.js
1 parent 1367d85 commit 07588d3

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Task/qqreads.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const jsname='企鹅读书'
5757
const $ = Env(jsname)
5858
const notify = $.isNode() ? require('./sendNotify') : '';
5959
var tz=''
60+
var kz=''
6061

6162
const logs = 0; //0为关闭日志,1为开启
6263
const notifyInterval=2
@@ -232,6 +233,12 @@ return new Promise((resolve, reject) => {
232233
$.get(toqqreadtaskurl,(error, response, data) =>{
233234
if(logs) $.log(`${jsname}, 任务列表: ${data}`)
234235
task =JSON.parse(data)
236+
kz+=
237+
'【任务列表】:余额'+
238+
task.data.user.amount+
239+
'金币\n'+'【宝箱任务'+
240+
(task.data.treasureBox.count+1)+
241+
'】:'
235242
tz+=
236243
'【任务列表】:余额'+
237244
task.data.user.amount+
@@ -309,7 +316,8 @@ return new Promise((resolve, reject) => {
309316
$.get(toqqreadinfourl,(error, response, data) =>{
310317
if(logs) $.log(`${jsname}, 用户名: ${data}`)
311318
info =JSON.parse(data)
312-
319+
kz+=
320+
'\n========== 【'+info.data.user.nickName+'】 ==========\n'
313321
tz+=
314322
'\n========== 【'+info.data.user.nickName+'】 ==========\n'
315323

@@ -633,14 +641,7 @@ tz += `\n\n========= 脚本执行-北京时间(UTC+8):${new Date(new Date().ge
633641

634642
let d = new Date(new Date().getTime() + 8 * 60 * 60 * 1000);
635643
if (d.getHours()==2 && d.getMinutes()<=59 ) {
636-
notify.sendNotify(jsname,
637-
'【任务列表】:余额'+
638-
task.data.user.amount+
639-
'金币\n'+
640-
'【宝箱奖励'+box.data.count+'】:获得'+
641-
box.data.amount+
642-
'金币\n'
643-
)
644+
notify.sendNotify(jsname,kz)
644645
}
645646

646647
if (notifyInterval==1)

0 commit comments

Comments
 (0)