改动总结#6
Open
xfxx2022 wants to merge 14 commits into
Open
Conversation
改动总结
1. 新增:显示当前所有积分
新增调用 GET /api/user/points 接口,获取每个账号的总积分余额
输出格式:1. email@example.com | ✅ 成功 (+0.1积分) | 总积分:500 积分 | 剩余:123 天
2. 修复:重复签到显示 "失败" 的 bug
根因:原代码仅靠 message 字段的关键词匹配("got"/"repeat"/"already"),但 GLaDOS API 实际通过 code 字段返回状态:
code=0 → 成功
code=1 → 重复签到
code=-2 → 失败
修复:新增 classify_checkin() 函数,优先根据 code 判断,兜底用 message 关键词(含中文:"重复"、"已签到"、"签到过"、"请勿"),彻底解决重复签到误报失败的问题。
3. 优化精简
改动 说明
推送函数统一 push_deer / push_serverchan 入口统一,提前 return 简化分支
headers 构建 {**HEADERS, "cookie": cookie} 一行合并,去掉了 dict(HEADERS) + 赋值
sleep 优化 仅在非最后一个账号时 sleep,减少无意义等待
异常信息 失败时附带 message,异常时附带具体错误,方便排查
4. workflow 优化
Python 3.8 → 3.11
pip install 合并为一行,去掉 python -m pip install --upgrade pip
keepalive 的 git 身份改为 github-actions[bot](标准做法)
去掉 keepalive 中多余的 "配置 Git 用户" 步骤拆分
MZRidaz
approved these changes
Jun 7, 2026
MZRidaz
approved these changes
Jun 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能新增
新增 Telegram Bot 推送
新增 PushPlus(推送加)推送
新增钉钉机器人推送(支持加签验证)
新增飞书机器人推送(支持加签验证)
新增企业微信机器人推送
新增云湖机器人推送
新增总积分查询功能
新增网络请求自动重试机制(指数退避)
新增 Cookie 格式预验证
新增日志脱敏处理(邮箱/Cookie 自动隐藏)
新增每月自动空提交保活机制