瀏覽代碼

关闭背景音乐

jek 1 年之前
父節點
當前提交
4d4a5f0a7f
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/main/java/com/zhili/stationcontrol/tts/controller/TtsController.java

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