File tree Expand file tree Collapse file tree
16-专题组队学习/02-OpenClaw家庭物资助手 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # OpenClaw 与飞书接入
2+
3+ 这一章只讲接入链路,不讲 UI,也不讲后续的库存逻辑。
4+
5+ ## 本章完成后
6+
7+ 读者应该知道:
8+
9+ 1 . OpenClaw 读哪些配置
10+ 2 . 飞书应用凭据放在哪里
11+ 3 . 为什么多维表格同步要单独写一层配置
12+
13+ ## 读取顺序
14+
15+ OpenClaw 的集成层会先读环境变量,再回退到本机的 ` ~/.openclaw/openclaw.json ` 。
16+
17+ 优先级如下:
18+
19+ 1 . ` OPENCLAW_FEISHU_APP_ID `
20+ 2 . ` OPENCLAW_FEISHU_APP_SECRET `
21+ 3 . ` OPENCLAW_FEISHU_NOTIFY_TARGET `
22+ 4 . ` OPENCLAW_FEISHU_NOTIFY_RECEIVE_ID_TYPE `
23+ 5 . ` OPENCLAW_FEISHU_BITABLE_APP_TOKEN `
24+ 6 . ` OPENCLAW_FEISHU_BITABLE_TABLE_ID `
25+
26+ ## 需要准备什么
27+
28+ - 飞书开放平台里的应用凭据
29+ - 一个可写的 OpenClaw 本机配置文件
30+ - 已开通的多维表格权限
31+
32+ ## 关键检查点
33+
34+ - 如果 ` appId ` 和 ` appSecret ` 为空,通知和同步都会失败
35+ - 如果只配了通知目标,没有配多维表格的 ` appToken/tableId ` ,库存同步仍然不会启动
36+ - 如果配置文件是 Windows 写出的 UTF-8 BOM,Python 读取 JSON 可能失败,建议写成无 BOM UTF-8
37+
38+ ## 对应代码
39+
40+ - [ integrations.py] ( ./tuntunclaw/integrations.py )
41+ - [ workflow_hooks.py] ( ./tuntunclaw/workflow_hooks.py )
42+ - [ main.py] ( ./tuntunclaw/main.py )
You can’t perform that action at this time.
0 commit comments