API 全量清单 · 文件
文件
chooseMessageFile
⚠️选择会话文件。
大概用法
三端策略
- 微信:直连 `wx.chooseMessageFile`
- 支付宝:无同等 API,调用时按 unsupported 报错
- 抖音:无同等 API,调用时按 unsupported 报错
saveFile
⚠️保存文件(跨端扩展,微信 typings 未声明同名 API)。
大概用法
三端策略
- 微信:微信当前 typings 未声明同名 API,保留为跨端扩展能力
- 支付宝:请求参数 `tempFilePath` ↔ `apFilePath`、结果映射为 `savedFilePath`
- 抖音:直连 `tt.saveFile`,并在缺失时用 `filePath` 兜底 `savedFilePath`
saveFileToDisk
⚠️保存文件到磁盘。
大概用法
三端策略
- 微信:直连 `wx.saveFileToDisk`
- 支付宝:直连 `my.saveFileToDisk`
- 抖音:无同等 API,调用时按 unsupported 报错
openVideoEditor
⚠️打开视频编辑器。
大概用法
三端策略
- 微信:直连 `wx.openVideoEditor`
- 支付宝:无同等 API,调用时按 unsupported 报错
- 抖音:无同等 API,调用时按 unsupported 报错
openDocument
⚠️打开文档。
大概用法
三端策略
- 微信:直连 `wx.openDocument`
- 支付宝:直连 `my.openDocument`
- 抖音:无同等 API,调用时按 unsupported 报错