ai_member_xiaoxi/memory/2026-06-13.md
2026-06-14 08:00:01 +08:00

21 lines
937 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-06-13 工作日志
## 飞书表格写入 5000 格上限问题修复
**来源:** 陈逸鸫发现全量刷订单漏数据,李承龙确认修复
**问题:**
- `refresh_order_summary.py` 清空时 500行×26列=13,000格 超过飞书 API 5000 格上限
- `sales_leads_full_refresh.py` 清空时 500行×22列=11,000格写入时 500行×22列=11,000格 同样超标
- 超标请求静默失败API 不报错),导致旧数据残留、新数据被部分覆盖、末尾行丢失
**修复:**
1. 创建 `scripts/feishu_sheet_utils.py` 共享工具,封装安全分批写入/清空逻辑,自动计算批大小 ≤ 4400 格/批
2. `refresh_order_summary.py``sales_leads_full_refresh.py` 均已改用共享工具
3. 登记到 `SKILL_REGISTRY.md``MEMORY.md`
**关键参数:**
- 22列 → 单批最大 200 行 (4400 格)
- 24列 → 单批最大 183 行 (4392 格)
- 26列 → 单批最大 169 行 (4394 格)