Repository navigation
Commit e22443e
committed
fix: checkin 端点漏传 already_checked_in 字段
界面仍显示「签到成功,获得 — 积分」,抓 API 响应发现
already_checked_in 根本没在响应里——上一轮只改了前端判断,
但后端 checkin 端点是手写的 dict,漏了新加的字段。前端等不到它,
永远走不到「已签到」分支。
同时修掉一个连带 bug:已签到(没领到新积分)时也触发了额度重探测,
是无意义的上游请求。改为只在真正签到成功时探测。
后端 582 测试 / 覆盖 100%。浏览器复验:
提示「今天已签到,请明天再来」,不再出现「获得 — 积分」。1 parent 17c1566 commit e22443e
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
353 | | - | |
| 354 | + | |
| 355 | + | |
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
| |||
0 commit comments