| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可
[MITM]
gameapi.hellobike.com
[Script]
http-request ^https:\/\/gameapi\.hellobike\.com\/api script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/hellobike/hellobike.js, requires-body=true
cron "5 0 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/hellobike/hellobike.js[MITM]
gameapi.hellobike.com
[rewrite_local]
# [商店版]
^https:\/\/gameapi\.hellobike\.com\/api url script-request-body hellobike/hellobike.js
# [TestFlight]
^https:\/\/gameapi\.hellobike\.com\/api url script-request-body https://raw.githubusercontent.com/chavyleung/scripts/master/hellobike/hellobike.js
[task_local]
# [商店版]
5 0 * * * hellobike/hellobike.js
# [TestFlight]
5 0 * * * https://raw.githubusercontent.com/chavyleung/scripts/master/hellobike/hellobike.js第 1 条脚本是用来获取 cookie 的, 用浏览器访问一次获取 cookie 成功后就可以删掉或注释掉了, 但请确保在登录成功后再获取 cookie.
第 2 条脚本是签到脚本, 每天00:05执行一次.
无法写入 Cookie
写入 Cookie 成功, 但签到不成功
为什么有时成功有时失败
很正常,网络问题,哪怕你是手工签到也可能失败(凌晨签到容易拥堵就容易失败)
暂时不考虑代码级的重试机制,但咱有配置级的(暴力美学):
Surge配置:
# 没有什么是一顿饭解决不了的:
cron "10 0 0 * * *" script-path=xxx.js # 每天00:00:10执行一次
# 如果有,那就两顿:
cron "20 0 0 * * *" script-path=xxx.js # 每天00:00:20执行一次
# 实在不行,三顿也能接受:
cron "30 0 0 * * *" script-path=xxx.js # 每天00:00:30执行一次
# 再粗暴点,直接:
cron "* */60 * * * *" script-path=xxx.js # 每60分执行一次QuanX配置:
[task_local]
1 0 * * * xxx.js # 每天00:01执行一次
2 0 * * * xxx.js # 每天00:02执行一次
3 0 * * * xxx.js # 每天00:03执行一次
*/60 * * * * xxx.js # 每60分执行一次| Back | FazBrowse Home | New Git URL |