jek пре 1 година
родитељ
комит
4d4a5f0a7f

+ 6 - 5
src/main/java/com/zhili/stationcontrol/tts/controller/TtsController.java

@@ -69,11 +69,12 @@ public class TtsController {
 
     @GetMapping("/startMusic/{vol}")
     public String startMusic(@PathVariable Integer vol) {
-        vol = vol > 1000 ? 1000 : vol;
-        vol = vol < 0 ? 0 : vol;
-        log.info("start music with vol:{}", vol);
-        Integer start = musicService.start(playPath, vol);
-        return start.equals(0) ? "ok" : "error";
+//        vol = vol > 1000 ? 1000 : vol;
+//        vol = vol < 0 ? 0 : vol;
+//        log.info("start music with vol:{}", vol);
+//        Integer start = musicService.start(playPath, vol);
+//        return start.equals(0) ? "ok" : "error"; todo 注释掉音乐
+        return "ok";
     }
 
     @GetMapping("/stopMusic")