ai_member_xiaoxi/memory/2026-05-28.md
2026-05-29 08:00:01 +08:00

33 lines
1.6 KiB
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-05-28 工作日志
## [李承龙] stride_phone_lead 表查询与飞书表格创建
- **数据库:** 在线 PostgreSQL `vala_class` 库(新发现的数据库,之前未记录在 TOOLS.md 中)
- **表结构:** `stride_phone_lead`(手机号线索表)
- 字段id, phone_masked, phone_encrypt, account_id, source_l1, source_l2, source_l3, created_at, updated_at
- 索引:主键(id), 唯一(phone_encrypt), 普通(account_id, source_l3, updated_at)
- phone_encrypt 有唯一约束用于手机号去重
- **权限:** `ai_member` 用户最初对该表无 SELECT 权限,李承龙临时授权后可用
- **vala_class 库中 ai_member 可读表:** account_wx_id, parent_address, user_info, student_info, stride_phone_lead共5张
## [李承龙] stride_phone_lead 飞书表格
- **飞书表格:** https://makee-interactive.feishu.cn/sheets/TWeHsCX6JhhsjntBagHcoJcJned
- **Sheet 配置:**
- 明细数据 (2dBSrS):全量明细
- 按日期去重 (1X5g5y)created_at 转日期后 account_id 去重计数
- 按source_l3去重 (1X5g5z):按 source_l3 维度 account_id 去重计数
## [李承龙] stride_phone_lead 定时更新
- **定时任务:** 每天 08:00 自动更新飞书表格
- **脚本:** `scripts/update_stride_phone_lead_sheet.py`
- **日志:** `/var/log/xiaoxi_stride_phone_lead.log`
- **crontab 已添加** ✅
## 技术备注
- lark-cli 的 `config bind` 在 Linux 上 keychain 损坏,改用飞书 Open API + curl/Python 直接调用
- 飞书 Bot 凭证小溪appId=cli_a929ae22e0b8dcc8, secret 见 secrets.env
- `vala_class` 数据库需要补充到 TOOLS.md 和 MEMORY.md 中