Skip to content

Commit 846d794

Browse files
authored
Create qqreads.js
1 parent 83494c3 commit 846d794

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

cache/qqreads.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tz+='👤'+'\n'
7777

7878
function all() {
7979

80-
for(var i=0;i<15;i++)
80+
for(var i=0;i<16;i++)
8181
{ (function(i) {
8282
setTimeout(function() {
8383

@@ -130,6 +130,10 @@ for(var i=0;i<15;i++)
130130
else if (i == 14 && task.data && task.data.taskList[1].doneFlag == 0)
131131
qqreadssr3();
132132
// 阅读金币3
133+
else if (i == 15 && task.data &&
134+
task.data.user.amount >= 100000&&d.getHours() == 23)
135+
qqreadwithdraw();//现金提现
136+
}
133137
}
134138
, (i + 1) *dd*1000);
135139
})(i)
@@ -247,7 +251,24 @@ resolve()
247251
})
248252
}
249253

250-
254+
//提现
255+
function qqreadwithdraw() {
256+
return new Promise((resolve, reject) => {
257+
const toqqreadwithdrawurl = {
258+
url: "https://mqqapi.reader.qq.com/mqq/red_packet/user/withdraw?amount=100000",
259+
headers: JSON.parse(qqreadtimeheaderVal),
260+
timeout: 60000,
261+
};
262+
$.post(toqqreadwithdrawurl, (error, response, data) => {
263+
if (logs) $.log(`${jsname}, 提现: ${data}`);
264+
withdraw = JSON.parse(data);
265+
if(withdraw.data.code==0)
266+
tz += `【现金提现】:成功提现10元\n`;
267+
kz += `【现金提现】:成功提现10元\n`;
268+
resolve();
269+
});
270+
});
271+
}
251272

252273
//阅豆签到
253274
function qqreadtake() {

0 commit comments

Comments
 (0)