Skip to content

Commit 7e08016

Browse files
committed
更新[趣头条],修复首页奖励Cookie问题,更多内容看README
1 parent eaed6d3 commit 7e08016

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎qtt/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ api.1sapp.com
2525
[Script]
2626
http-request ^https:\/\/api\.1sapp\.com\/sign\/info? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
2727
http-request ^https:\/\/api\.1sapp\.com\/content\/readV2? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
28-
http-request ^https:\/\/api\.1sapp\.com\/xx\/feed\/getReward? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
28+
http-request ^https:\/\/api\.1sapp\.com\/x\/feed\/getReward? script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
2929

3030
cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.js
3131
```
@@ -45,7 +45,7 @@ api.1sapp.com
4545
# [TestFlight] QuanX v1.0.6-build195 及以后版本
4646
^https:\/\/api\.1sapp\.com\/sign\/info? url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
4747
^https:\/\/api\.1sapp\.com\/content\/readV2? url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
48-
^https:\/\/api\.1sapp\.com\/xx\/feed\/getReward? url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
48+
^https:\/\/api\.1sapp\.com\/x\/feed\/getReward? url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qtt/qtt.cookie.js
4949

5050
[task_local]
5151
1 0 * * * qtt.js
@@ -63,7 +63,7 @@ api.1sapp.com
6363
6. 运行一次脚本, 如果提示重复签到, 那就算成功了!
6464
7. 建议将`task`执行次数改成每小时执行防止错过奖励
6565
8. 阅读篇数获取Cookie:`小视频`中播放一段时间视频即可获取,具体的阅读篇数奖励请到应用内手动点击
66-
9. 首页金币奖励:此Cookie在首页的推荐中随机出现,随机获取,并不一定会出现
66+
9. 首页金币奖励:此Cookie在首页的推荐中随机出现,随机获取,并不一定会出现。出现的同学使用本地挂载脚本,取消签到脚本的方法(`navCoin`)注释
6767
> 第 1 条脚本是用来获取 cookie 的, 用浏览器访问一次获取 cookie 成功后就可以删掉或注释掉了, 但请确保在`登录成功`后再获取 cookie.
6868
6969
> 第 2 条脚本是签到脚本, 每天`00:00:10`执行一次.

‎qtt/qtt.cookie.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if ($request && $request.method != 'OPTIONS' && requrl.match(/\/content\/readV2\
3535
}
3636
}
3737

38-
if ($request && $request.method != 'OPTIONS' && requrl.match(/\/xx\/feed\/getReward\?qdata=[a-zA-Z0-9_-]+/)) {
38+
if ($request && $request.method != 'OPTIONS' && requrl.match(/\/x\/feed\/getReward\?qdata=[a-zA-Z0-9_-]+/)) {
3939
try {
4040
const navCoinVal = requrl
4141
if (navCoinVal) {

‎qtt/qtt.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ const playUrl = [adUrl + 'pos=one', adUrl + 'pos=two', adUrl + 'pos=three', adUr
2121

2222
; (sign = async () => {
2323
senku.log(`🔔 ${cookieName}`)
24+
// 要获取首页奖励取消下方注释
25+
// await navCoin()
2426
await signDay()
2527
await signHour()
2628
await signLucky()
27-
// await play()
2829
await playone()
2930
await playtwo()
3031
await playthree()
3132
await playfour()
3233
await read()
33-
await navCoin()
3434
await getinfo()
3535
await getcoininfo()
36+
3637
showmsg()
3738
senku.done()
3839
})().catch((e) => senku.log(`❌ ${cookieName} 签到失败: ${e}`), senku.done())
@@ -353,7 +354,7 @@ function showmsg() {
353354
const done_times = signinfo.coininfo.data.done_times
354355
detail += `\n【首页奖励】:${cur_amount}💰,完成${done_times}/${total_times}`
355356
}
356-
} else detail += '首页奖励:失败或Cookie失效'
357+
} else detail += '首页奖励:失败或Cookie不存在'
357358

358359
// signLuckyMsg
359360
subTitle += subTitle == '' ? '' : ', '

0 commit comments

Comments
 (0)