代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可 感谢@danchaw PR 感谢@chiupam 修改
[MITM]
hostname = %APPEDN% mwegame.qq.com
[Script]
掌上飞车Cookie = type=http-request, pattern=^https://mwegame\.qq\.com/ams/sign/doSign/month, requires-body=1, max-size=-1, script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/zsfc/zsfc.js, script-update-interval=0, timeout=10
掌上飞车 =type=cron, cronexp="0 10 0 * * *", wake-system=1, script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/zsfc/zsfc.js, script-update-interval=0, timeout=10
[Mitm]
hostname = mwegame.qq.com
[Script]
http-request ^https://mwegame\.qq\.com/ams/sign/doSign/month script-path=https://raw.githubusercontent.com/chiupam/surge/main/scripts/javascripts/zsfc.js, requires-body=true, timeout=10, tag=掌上飞车Cookie
cron "0 10 0 * * *" script-path=https://raw.githubusercontent.com/chiupam/surge/main/scripts/javascripts/zsfc.js, tag=掌上飞车
[MITM]
hostname = mwegame.qq.com
[rewrite_local]
^https://mwegame\.qq\.com/ams/sign/doSign/month url scripts-request-body https://raw.githubusercontent.com/chiupam/surge/main/scripts/javascripts/zsfc.js
[task_local]
0 10 0 * * * https://raw.githubusercontent.com/chiupam/surge/main/scripts/javascripts/zsfc.js, tag=掌上飞车, enabled=true
- 先把
mwegame.qq.com
加到[MITM]
- 再配置重写规则:
- Surge: 把两条远程脚本放到
[Script]
- Loon: 把两条远程脚本放到
[Script]
- QuanX: 把远程重写脚本放到
[rewrite_local]
,再把远程定时任务放到[task_local]
- Surge: 把两条远程脚本放到
- 打开 APP掌上飞车 然后手动签到 1 次, 系统提示:
✅ 获取签到数据成功!
- 运行一次脚本, 如果提示重复签到, 那就算成功了!
-
无法写入 Cookie
- 检查系统通知权限放开了没
-
写入 Cookie 成功, 但签到不成功
- 看看是不是在登录前就写入 Cookie 了
- 如果是,请确保在登录成功后,再尝试写入 Cookie