Joburgess 4 anni fa
parent
commit
c1e5fb3c5a

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

@@ -156,7 +156,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") + ".mp3";
+            String filePath_r = FileUtils.getTempDirectoryPath()+ idGeneratorService.generatorId("sound") + "_r.mp3";
             f_r = new File(filePath_r);
             FileUtils.copyToFile(record.getInputStream(), f_r);
 
@@ -235,9 +235,9 @@ public class SoundServiceImpl implements SoundService {
             if(f!=null){
                 f.delete();
             }
-            if(f_r!=null){
-                f_r.delete();
-            }
+//            if(f_r!=null){
+//                f_r.delete();
+//            }
         }
 
         result.put("score", score);