Skip to content

Commit 4e7077b

Browse files
committed
更新[趣头条],修复睡觉问题
1 parent 91aaa69 commit 4e7077b

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎qtt/qtt.js‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getinfoUrlVal = 'https://api.1sapp.com/sign/info?version=30967000&xhi=200'
1818
const hourUrlVal = 'https://api.1sapp.com/mission/intPointReward?version=30967000&xhi=200' + signVal
1919
const coinUrlVal = 'https://api.1sapp.com/app/ioscoin/getInfo?version=30967000&xhi=200' + signVal
2020
const readReawardVal = 'https://api.1sapp.com/app/ioscoin/readReward?version=30967000&xhi=200&type=content_config' + signVal
21-
const sleepUrlVal = 'https://mvp-sleeper.qutoutiao.net/v1/sleep/update?version=30967000&xhi=200status=1' + signVal
21+
const sleepUrlVal = 'https://mvp-sleeper.qutoutiao.net/v1/sleep/update?version=30967000&xhi=200&status=1' + signVal
2222
const sleepRewardVal = 'https://mvp-sleeper.qutoutiao.net/v1/reward?version=30967000&xhi=200status=1&which=2' + signVal
2323
const signinfo = { playList: [] }
2424
const playUrl = [adUrl + 'pos=one', adUrl + 'pos=two', adUrl + 'pos=three', adUrl + 'pos=four']
@@ -34,6 +34,7 @@ const playUrl = [adUrl + 'pos=one', adUrl + 'pos=two', adUrl + 'pos=three', adUr
3434
await getreadReward()
3535
}
3636
if (new Date().getHours() == 20 || new Date().getHours() == 12) {
37+
await sleepReward()
3738
await sleep()
3839
}
3940
if (new Date().getHours() == 8 || new Date().getHours() == 14) {
@@ -372,23 +373,23 @@ function showmsg() {
372373
const currentCoin = amount[continuation]
373374
const nextCoin = amount[continuation + 1]
374375
const coins = signinfo.info.data.show_balance_info.coins
375-
subTitle += '每日:✅'
376+
subTitle += '每日:成功'
376377
detail += `【每日签到】获得${currentCoin}💰,明日可得${nextCoin}💰\n`
377378
}
378379
else subTitle += ''
379380
} else {
380-
subTitle += '每日:❌'
381+
subTitle += '每日:失败'
381382
senku.log(`❌ ${cookieName} showmsg - 每日签到: ${JSON.stringify(signinfo.signDay)}`)
382383
}
383384

384385
// signHourMsg
385-
subTitle += subTitle == '' ? '' : ', '
386+
386387
if (signinfo.signHour && signinfo.signHour.code == 0) {
387-
subTitle += '时段:✅'
388+
subTitle += '时段:成功'
388389
const amount = signinfo.signHour.data.amount
389390
const next_time = tTime(signinfo.signHour.data.next_time)
390391
detail += `【时段签到】获得${amount}💰,下次签到:${next_time}\n`
391-
} else subTitle += '时段:🔕'
392+
} else subTitle += '时段:时间未到'
392393

393394
// readMsg
394395
if (signinfo.read && signinfo.read.data.status_code == 0) {
@@ -432,17 +433,17 @@ function showmsg() {
432433
} else detail += '【首页奖励】失败或Cookie不存在\n'
433434

434435
// signLuckyMsg
435-
subTitle += subTitle == '' ? '' : ', '
436+
436437
if (signinfo.signLucky && signinfo.signLucky.code == 1) {
437-
subTitle += `幸运转盘:✅`
438+
subTitle += `幸运转盘:成功`
438439
const amount_coin = signinfo.signLucky.amount_coin
439440
const count = signinfo.signLucky.count
440441
const count_limit = signinfo.signLucky.count_limit
441442
detail += `【幸运转盘】获得${amount_coin},抽奖情况:${count}/${count_limit}次\n`
442443
} else subTitle += ``
443444

444445
// playAdsMsg
445-
subTitle += subTitle == '' ? '' : ', '
446+
446447
if (signinfo.playList) {
447448
if (signinfo.playList[0].code == 0) {
448449
subTitle += ''
@@ -455,7 +456,7 @@ function showmsg() {
455456
}
456457
detail += `【账户详情】共计:${coins}💰,连续签到${continuation}天`
457458
} else if (signinfo.playList[0].code == -126) subTitle += '广告:权限错误'
458-
} else subTitle += '广告:❌'
459+
} else subTitle += '广告:失败'
459460

460461
senku.msg(cookieName, subTitle, detail)
461462
senku.done()

0 commit comments

Comments
 (0)