docs: 修正飞书权限说明

- 移除不准确的权限代码(im:resource)
- 使用实际导出的权限:im:message, im:message:readonly, aily:file:read, aily:file:write
This commit is contained in:
饭团
2026-03-05 15:43:40 +08:00
parent ff3ce48207
commit 8e1462a6db
2 changed files with 36 additions and 29 deletions

View File

@@ -16,25 +16,16 @@
### 2. 配置权限
在"权限管理"中添加以下权限(根据飞书开放平台实际权限代码)
**方式一:标准权限(推荐)**
| 权限 | 说明 |
|------|------|
| `im:message` | 发送和接收消息 |
| `im:resource` | 访问消息中的资源(文件、图片等) |
**方式二:批量导出权限(如果显示以下权限)**
在"权限管理"中添加以下权限:
```json
{
"scopes": {
"tenant": [
"im:message",
"im:message:readonly",
"aily:file:read",
"aily:file:write",
"im:message"
"aily:file:write"
],
"user": [
"aily:file:read",
@@ -51,8 +42,6 @@
| `aily:file:read` | 读取文件 |
| `aily:file:write` | 写入文件 |
> **💡 提示:** 不同飞书版本可能显示不同的权限代码,以上两种都可以使用。
详细权限配置请查看 [`FEISHU_PERMISSIONS.md`](./FEISHU_PERMISSIONS.md)
### 3. 配置事件订阅