
CodexandClaude Opus 4.7
7b6dec820b
refactor(fudai): 抽 _handle_in_fudai_detail 步骤3末尾两个小段 (2926 → 2872)
新增 2 个 helper:
- check_invalid_detail_fallback:兜底检查(content="" + value=0 → 视为无效详情)
- prepare_for_attend:记 attend_before_ts + 提取 future_ts + 重置 _detail_closed_by_attend
净减 54 行重复样板代码。新增 9 个单元测试覆盖:
- 空内容+0价值识别为无效
- 正常内容不触发兜底
- detail tuple 短或非 tuple 不抛
- prepare_for_attend 正确返回 attend_before_ts 和写入 future_ts
至此 _handle_in_fudai_detail 总长 1872 → 1010 行(-862 行 / -46%),
douyin_fudai.py 4121 → 2872(累计 -1249 行 / -30%)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 21:16:06 +08:00
..
2026-05-21 14:09:02 +08:00
2026-05-21 15:02:08 +08:00
2026-05-21 22:21:03 +08:00
2026-05-21 14:45:49 +08:00
2026-05-21 22:15:34 +08:00
2026-05-21 22:03:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 22:42:58 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 21:53:47 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:38:43 +08:00
2026-05-21 22:07:15 +08:00
2026-05-21 22:00:02 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:15:14 +08:00
2026-05-22 21:16:06 +08:00
2026-05-21 21:25:50 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 21:50:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 22:24:15 +08:00
2026-05-21 14:09:02 +08:00
2026-05-22 20:16:37 +08:00
2026-05-22 19:08:09 +08:00
2026-05-21 14:45:49 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:56:43 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:42:39 +08:00
2026-05-21 22:12:54 +08:00
2026-05-21 15:11:54 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:56:56 +08:00
2026-05-22 20:46:23 +08:00
2026-05-21 20:54:35 +08:00
2026-05-22 19:20:29 +08:00
2026-05-21 21:04:14 +08:00
2026-05-21 14:25:35 +08:00
2026-05-21 20:54:35 +08:00
2026-05-22 01:22:56 +08:00
2026-05-21 22:09:35 +08:00
2026-05-22 19:20:29 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:28:26 +08:00
2026-05-21 22:17:54 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:37:19 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:45:46 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 15:17:56 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-22 19:59:19 +08:00
2026-05-22 19:32:04 +08:00
2026-05-21 22:48:38 +08:00
2026-05-21 20:54:35 +08:00