Browse Source

Merge branch 'transaction_teacher'

Joburgess 4 years ago
parent
commit
e78c2ee7bf

+ 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);