|
@@ -89,7 +89,7 @@ class FilesController extends Controller {
|
|
const saved = await this.wxsaveFile(rootPath, dirs, stream, '.amr');
|
|
const saved = await this.wxsaveFile(rootPath, dirs, stream, '.amr');
|
|
// 音频时如果需要使用转码,以下调用ffmpeg进行转码处理
|
|
// 音频时如果需要使用转码,以下调用ffmpeg进行转码处理
|
|
// const hz = '.mp3';
|
|
// const hz = '.mp3';
|
|
- const resultname = `${saved.id}${hz}`;
|
|
|
|
|
|
+ const resultname = `${saved.id}.amr`;
|
|
// const ffurl = `${saved.filePath}${resultname}`;
|
|
// const ffurl = `${saved.filePath}${resultname}`;
|
|
// if (!ffmpeg) throw new BusinessError(ErrorCode.SERVICE_FAULT, '转换失败');
|
|
// if (!ffmpeg) throw new BusinessError(ErrorCode.SERVICE_FAULT, '转换失败');
|
|
// new ffmpeg({ source: `${saved.filePath}${saved.fileName}` })
|
|
// new ffmpeg({ source: `${saved.filePath}${saved.fileName}` })
|