소스 검색

feat:陪练评分

Joburgess 4 년 전
부모
커밋
cd105a9752
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/SoundServiceImpl.java

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SoundServiceImpl.java

@@ -138,7 +138,7 @@ public class SoundServiceImpl implements SoundService {
         File f_r = null;
         try {
             URL url = new URL(sysMusicScore.getUrl());
-            String filePath = FileUtils.getTempDirectoryPath()+ idGeneratorService.generatorId("sound") + ".mp3";
+            String filePath = FileUtils.getTempDirectoryPath() +"/"+ idGeneratorService.generatorId("sound") + ".mp3";
             f = new File(filePath);
             FileUtils.copyURLToFile(url, f);
 
@@ -149,7 +149,7 @@ public class SoundServiceImpl implements SoundService {
             BigDecimal l_s = new BigDecimal(0);
             BigDecimal l_r = new BigDecimal(0);
 
-            String filePath_r = FileUtils.getTempDirectoryPath()+ idGeneratorService.generatorId("sound") + "_r.wav";
+            String filePath_r = FileUtils.getTempDirectoryPath() +"/"+ idGeneratorService.generatorId("sound") + "_r.wav";
             f_r = new File(filePath_r);
             FileUtils.copyToFile(record.getInputStream(), f_r);