# FileFlows 接入 Server酱：媒体转码完成或失败时微信收到通知（2026 教程）

> 通过 FileFlows Apprise 插件接入 Server酱，媒体文件处理完成或失败时自动推送微信通知，附完整配置步骤。

- 网页版：https://sct.ftqq.com/docs/integrations/fileflows/
- 更新日期：2026-07-17

# FileFlows + Server酱：媒体转码完成或失败时微信收到通知

> 效果：FileFlows 流水线处理媒体文件完成或失败时，自动推送消息到微信。

## 前置条件

- Server酱 SendKey，需 SCT 开头（[30 秒获取教程](https://sct.ftqq.com/docs/getting-started/sendkey/)）
- 运行中的 FileFlows 实例
- 一个 apprise-api 容器（部署方式见 [Apprise 接入教程](https://sct.ftqq.com/docs/integrations/apprise/)）

## 配置步骤

### 1. 准备 Server酱 通知 URL

Apprise 插件中需要填写的通知 URL：

```
schan://你的SENDKEY
```

`schan://` 是 Apprise 中 Server酱的专用协议，底层调用 `https://sctapi.ftqq.com/你的SENDKEY.send`，SCT 开头的 SendKey 直接可用。

### 2. 部署 apprise-api 容器

FileFlows 的 Apprise 插件需要连接一个 apprise-api 服务器作为中间层。使用 caronc/apprise-api 镜像部署容器，详细步骤见 [Apprise 接入教程](https://sct.ftqq.com/docs/integrations/apprise/)。

### 3. 安装并配置 Apprise 插件

在 FileFlows 的 Plugins 中安装 Apprise 插件（具体入口以应用内实际显示为准）。在插件设置中填写：

- Apprise 服务器地址：你的 apprise-api 容器地址
- 通知 URL：`schan://你的SENDKEY`

### 4. 在处理流程中加入通知节点

在 FileFlows 的处理流程中添加 Apprise 通知节点。

### 5. 命令行自测

在部署 apprise-api 的机器上执行以下命令，验证 Server酱 通路是否正常：

```bash
pip install apprise
apprise -t "测试" -b "正文" "schan://你的SENDKEY"
```

收到微信消息说明配置无误。

## 常见问题

**免费额度够用吗？**

Server酱免费版每天 5 条，每分钟上限 50 条。转码任务量不大时足够；订阅会员目前特价最低 3 元/月，一天最多可发 1000 条（[价格详情](https://sct.ftqq.com/subscribe)）。

**消息没收到怎么办？**

先用命令行 `apprise -vv` 自测确认 Server酱 通路正常，再检查 FileFlows 中通知节点是否正确连接到流程。更多排查见[常见问题与排查](https://sct.ftqq.com/docs/getting-started/faq/)。

**频率限制是多少？**

每分钟上限 50 条，会员每日 API 请求上限 1000 条。批量转码时注意控制并发通知数量。

**必须自建 apprise-api 吗？**

是的，FileFlows 的 Apprise 插件通过 apprise-api 服务器转发通知，不支持直接填写 Server酱 API 地址。

## 相关集成

- [青龙面板任务通知](https://sct.ftqq.com/docs/integrations/qinglong/)
- [Uptime Kuma 宕机告警](https://sct.ftqq.com/docs/integrations/uptime-kuma/)
- [Python 脚本推送](https://sct.ftqq.com/docs/integrations/python/)


## 懒人方案：把这段话复制给你的 AI 助手

把下面这段文字原样粘贴给 Claude Code、Cursor 或任何 AI 编程助手，它就会替你完成 Server酱 的接入：

```text
请帮我把 Server酱 微信通知接入到我当前的项目/工具中：
1. API：POST https://sctapi.ftqq.com/{SendKey}.send，参数 title（必填，不能含换行）、desp（正文，支持 Markdown，可选）；成功时返回 JSON 的 code 为 0。
2. 如果我的 SendKey 以 sctp 开头，则改用 https://{uid}.push.ft07.com/send/{SendKey}.send，uid 是 SendKey 中 sctp 与 t 之间的数字。
3. SendKey 从环境变量 SERVERCHAN_SENDKEY 读取；如果没有，提醒我到 https://sct.ftqq.com 免费获取（每天 5 条额度）。
4. 安全要求：不要把 SendKey 硬编码进代码、不要打印到日志、不要提交到 git。
5. 频率约定：任务结束发 1 条结果摘要即可，批量任务合并成一条，不要每步都推。
请根据我当前的项目和场景直接写好代码/配置并验证。
```

