lrf402788946 4 년 전
부모
커밋
56242b010b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/files.js

+ 1 - 1
app/controller/files.js

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