TitanWong vor 1 Jahr
Ursprung
Commit
4691ebdf1a

+ 1 - 1
src/main/java/com/zhili/stationcontrol/tts/service/impl/MusicServiceImpl.java

@@ -24,7 +24,7 @@ public class MusicServiceImpl implements MusicService {
     public Integer start(String path, Integer vol) {
         stop();
         try {
-            String cmd = "nohup play -v "+Float.valueOf(new Integer(vol).toString())/100+" "+path+" repeat 10 &";
+            String cmd = "play -v "+Float.valueOf(new Integer(vol).toString())/100+" "+path+" repeat 10";
             log.info("cmd:{}",cmd);
             p = Runtime.getRuntime().exec(cmd);
             return 0;

+ 1 - 1
src/main/resources/application-test.yml

@@ -3,7 +3,7 @@ server:
 
 spring:
   redis:
-    host: 192.167.3.106
+    host: 192.167.3.120
     port: 6379