Skip to content

Commit 0f8628f

Browse files
authored
Merge pull request chavyleung#63 from danchaw/master
添加[七猫小说]签到
2 parents 8f927f6 + 0ce3c8e commit 0f8628f

5 files changed

Lines changed: 535 additions & 9 deletions

File tree

‎haidilao/README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@ activity-1.m.duiba.com.cn
2222

2323
[rewrite_local]
2424

25-
# [商店版] QuanX v1.0.6-build194 及更早版本
26-
不支持
25+
# [商店版]
26+
^https:\/\/activity-1\.m\.duiba\.com\.cn\/signactivity\/doSign$ url script-request-body hdl.js
2727

28-
# [TestFlight] QuanX v1.0.6-build195 及以后版本
28+
# [TestFlight]
2929
^https:\/\/activity-1\.m\.duiba\.com\.cn\/signactivity\/doSign$ url script-request-body https://raw.githubusercontent.com/chavyleung/scripts/master/haidilao/hdl.js
3030

3131
[task_local]
32+
33+
# [商店版]
3234
1 0 * * * hdl.js
35+
36+
# [TestFlight]
37+
1 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/haidilao/hdl.js
3338
```
3439

3540
## 说明

‎hycan/README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ wxprdapplet.gac-nio.com
2121

2222
[rewrite_local]
2323

24-
# [商店版] QuanX v1.0.6-build194 及更早版本
25-
# ^https:\/\/wxprdapplet\.gac-nio\.com\/community\/userSignIn\/simpleAuth\/front\/v3\.1\.3\.5\/signV2$ url script-request-header hycan.cookie.js
24+
# [商店版]
25+
^https:\/\/wxprdapplet\.gac-nio\.com\/community\/userSignIn\/simpleAuth\/front\/v3\.1\.3\.5\/signV2$ url script-request-header hycan.cookie.js
2626

27-
# [TestFlight] QuanX v1.0.6-build195 及以后版本
27+
# [TestFlight]
2828
^https:\/\/wxprdapplet\.gac-nio\.com\/community\/userSignIn\/simpleAuth\/front\/v3\.1\.3\.5\/signV2$ url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/hycan/hycan.cookie.js
2929

3030
[task_local]
31+
32+
# [商店版]
3133
1 0 * * * hycan.js
34+
35+
# [TestFlight]
36+
1 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/hycan/hycan.js
3237
```
3338

3439
## 说明

‎nio/README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ app.nio.com
2121

2222
[rewrite_local]
2323

24-
# [商店版] QuanX v1.0.6-build194 及更早版本
25-
# ^https:\/\/app\.nio\.com\/api\/1\/app\/daily_checkin url script-request-header nio.cookie.js
24+
# [商店版]
25+
^https:\/\/app\.nio\.com\/api\/1\/app\/daily_checkin url script-request-header nio.cookie.js
2626

27-
# [TestFlight] QuanX v1.0.6-build195 及以后版本
27+
# [TestFlight]
2828
^https:\/\/app\.nio\.com\/api\/1\/app\/daily_checkin url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/nio/nio.cookie.js
2929

3030
[task_local]
31+
32+
# [商店版]
3133
1 0 * * * nio.js
34+
35+
# [TestFlight]
36+
1 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/nio/nio.js
3237
```
3338

3439
## 说明

‎qimao/README.md‎

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# 七猫小说
2+
3+
> 代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可
4+
> 感谢[@danchaw](https://github.com/danchaw) PR
5+
## 配置 (Surge)
6+
7+
```properties
8+
[MITM]
9+
xiaoshuo.qm989.com
10+
11+
[Script]
12+
http-request ^https:\/\/xiaoshuo\.qm989\.com script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qimao/qmnovel.js
13+
cron "10 0 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/qimao/qmnovel.js
14+
```
15+
16+
## 配置 (QuanX)
17+
18+
```properties
19+
[MITM]
20+
xiaoshuo.qm989.com
21+
22+
[rewrite_local]
23+
24+
# [商店版]
25+
^https:\/\/xiaoshuo\.qm989\.com url script-request-header qmnovel.js
26+
27+
# [TestFlight]
28+
^https:\/\/xiaoshuo\.qm989\.com url script-request-header https://raw.githubusercontent.com/chavyleung/scripts/master/qimao/qmnovel.js
29+
30+
[task_local]
31+
32+
# [商店版]
33+
1 0 * * * qmnovel.js
34+
35+
# [TestFlight]
36+
1 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/qimao/qmnovel.js
37+
```
38+
39+
## 说明
40+
41+
1. 先把`xiaoshuo.qm989.com`加到`[MITM]`
42+
2. 再配置重写规则:
43+
- Surge: 把两条远程脚本放到`[Script]`
44+
- QuanX: 把`qmnovel.js`传到`On My iPhone - Quantumult X - Scripts` (传到 iCloud 相同目录也可, 注意要打开 quanx 的 iCloud 开关)
45+
3. 打开 APP[七猫小说](https://apps.apple.com/cn/app/%E4%B8%83%E7%8C%AB%E5%B0%8F%E8%AF%B4-%E7%9C%8B%E5%B0%8F%E8%AF%B4%E7%94%B5%E5%AD%90%E4%B9%A6%E7%9A%84%E9%98%85%E8%AF%BB%E7%A5%9E%E5%99%A8/id1387717110) 然后到APP内手动日常签到(观看小视频领取奖励)和新手领福利签到以及幸运大转盘 1 次, 系统提示: `首次写入xxxUrl成功🎉,首次写入xxxCookie成功🎉`
46+
4. 最后就可以把第 1 条脚本注释掉了
47+
5. 运行一次脚本, 如果提示重复签到, 那就算成功了!
48+
49+
> 第 1 条脚本是用来获取 cookie 的, 用浏览器访问一次获取 cookie 成功后就可以删掉或注释掉了, 但请确保在`登录成功`后再获取 cookie.
50+
51+
> 第 2 条脚本是签到脚本, 每天`00:00:10`执行一次.
52+
53+
## 常见问题
54+
55+
1. 无法写入 Cookie
56+
57+
- 检查 Surge 系统通知权限放开了没
58+
- 如果你用的是 Safari, 请尝试在浏览地址栏`手动输入网址`(不要用复制粘贴)
59+
60+
2. 写入 Cookie 成功, 但签到不成功
61+
62+
- 看看是不是在登录前就写入 Cookie 了
63+
- 如果是,请确保在登录成功后,再尝试写入 Cookie
64+
65+
3. 为什么有时成功有时失败
66+
67+
- 很正常,网络问题,哪怕你是手工签到也可能失败(凌晨签到容易拥堵就容易失败)
68+
- 暂时不考虑代码级的重试机制,但咱有配置级的(暴力美学):
69+
70+
- `Surge`配置:
71+
72+
```properties
73+
# 没有什么是一顿饭解决不了的:
74+
cron "10 0 0 * * *" script-path=xxx.js # 每天00:00:10执行一次
75+
# 如果有,那就两顿:
76+
cron "20 0 0 * * *" script-path=xxx.js # 每天00:00:20执行一次
77+
# 实在不行,三顿也能接受:
78+
cron "30 0 0 * * *" script-path=xxx.js # 每天00:00:30执行一次
79+
80+
# 再粗暴点,直接:
81+
cron "* */60 * * * *" script-path=xxx.js # 每60分执行一次
82+
```
83+
84+
- `QuanX`配置:
85+
86+
```properties
87+
[task_local]
88+
1 0 * * * xxx.js # 每天00:01执行一次
89+
2 0 * * * xxx.js # 每天00:02执行一次
90+
3 0 * * * xxx.js # 每天00:03执行一次
91+
92+
*/60 * * * * xxx.js # 每60分执行一次
93+
```
94+
95+
## 感谢
96+
97+
[@NobyDa](https://github.com/NobyDa)
98+
99+
[@lhie1](https://github.com/lhie1)
100+
101+
[@ConnersHua](https://github.com/ConnersHua)
102+
103+
[@danchaw](https://github.com/danchaw)

0 commit comments

Comments
 (0)