From 5da29736aebd375e9e3935609a8c6052a2c6609c Mon Sep 17 00:00:00 2001 From: xiaoban Date: Fri, 29 May 2026 09:47:34 +0800 Subject: [PATCH] fix: 1a3 W/X -> AA/AB columns + C-column sales, sync_daily_report SUMIFS refs --- logs/backup.log | 8 ++++++++ memory/2026-05-29.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/logs/backup.log b/logs/backup.log index 0085fb2..a069642 100644 --- a/logs/backup.log +++ b/logs/backup.log @@ -450,3 +450,11 @@ To https://git.valavala.com/ai_member_only/ai_member_xiaoban 2234f3e..0e9acbd master -> master [2026-05-28 08:10:17] 工作区备份成功:自动备份 2026-05-28 08:10:01 [2026-05-29 08:10:01] 开始备份工作区... +[master 06aded3] 自动备份 2026-05-29 08:10:01 + 3 files changed, 2 insertions(+), 42 deletions(-) + delete mode 100644 tmp_daily_summary.md +remote: . Processing 1 references +remote: Processed 1 references in total +To https://git.valavala.com/ai_member_only/ai_member_xiaoban + 1d9ece8..06aded3 master -> master +[2026-05-29 08:10:04] 工作区备份成功:自动备份 2026-05-29 08:10:01 diff --git a/memory/2026-05-29.md b/memory/2026-05-29.md index 4521aaf..d45b1ea 100644 --- a/memory/2026-05-29.md +++ b/memory/2026-05-29.md @@ -28,3 +28,43 @@ - funnel-daily 看板 snapshot 3 个 bug - L1-S1-U1《秘密基地》5 张投放底图 - 漏斗看板发布方案(bot 不支持妙搭 html-publish) + +## 上午追加 · 陈逸鸫 + +### 小溪行课提醒 +- push 后 5250 条待处理(含 6005 条 ID 查询)+ 30 条其他状态 +- 已通过 bot 在行课群 @小溪 提醒(chat: oc_1b01b6f076d39f17be75ca52e585125f) + +### 日报 C1HVN2 格式修复 +- 问题:指标列(A18:A22)和销售列(A26:A29)无 hAlign,依赖旧格式残留导致对齐不一致 +- 修复:A列统一左对齐(新增 `label` 样式),数据区统一居中;`num`/`pct`/`money`/`roi` hAlign 2→1 +- 已推送 commit,重新应用样式块全部 OK + +### lark-cli OAuth 凭证修复 +- 陈逸鸫推送了 `scripts/check_lark_cli.sh`(damai-runbook §3.1) +- PATH 已切到 npm lark-cli: `/root/.nvm/versions/node/v24.14.0/bin/lark-cli` +- **阻塞**:`auth login` 无法在 OpenClaw exec 上下文中跑——npm lark-cli 检测到 OpenClaw 环境直接拒绝;且服务器 keychain 已损坏导致 `config bind`/`config init` 均失败 +- **结论**:OAuth 流程需陈逸鸫 SSH 手动执行(不在 OpenClaw 下) + 1. `lark-cli auth login --domain sheets,drive --no-wait --json` + 2. verification_url → 浏览器授权 + 3. `lark-cli auth login --device-code ` + 4. `lark-cli auth status` 确认 user tokenStatus=valid + 5. `lark-cli sheets +write ... --as user` 探针测试 +- 替代方案:陈逸鸫 Mac 上 user token 已有,sync_master_xiaoxi 在 Mac 跑(今天已补 1893 条) + + +## 上午追加 · 陈逸鸫 — 日报 Section 三修复 + +### 根因:V:Y 列冲突 +- `pull_xiaoxi_results.py` → V2:Y{end} = `[进线月(主表), 销售, 有手机(1), 已注册(1)]` +- `compute_lesson_activation.py` (1a3) → W=当日行课(0/1), X=7日内首课(0/1) +- 两处写入同列,后者覆盖前者——pull_xiaoxi 先跑(小溪回收),1a3 后跑(聚光 pipeline),但 1a3 的销售列读取 P 列而非 C 列导致聚合不匹配 +- C1HVN2 Section 三 formula `SUMIFS(W:W, B:B, date, C:C, owner)` 全部返回 0 + +### 修复方案 +1. `compute_lesson_activation.py`: + - 写入列从 W/X → AA/AB(避开 V:Y 区间) + - sales 从 row[15] (P列/小溪销售) → row[2] (C列/线索分配销售) — 对齐日报公式 +2. `sync_daily_report.py`: + - lead_w 公式: `!W:W` → `!AA:AA` + - lead_x 公式: `!X:X` → `!AB:AB`