diff --git a/src/main/java/top/yuchat/crawler/video/models/controller/VideoController.java b/src/main/java/top/yuchat/crawler/video/models/controller/VideoController.java index da2bbd3..b87dcde 100644 --- a/src/main/java/top/yuchat/crawler/video/models/controller/VideoController.java +++ b/src/main/java/top/yuchat/crawler/video/models/controller/VideoController.java @@ -45,7 +45,7 @@ public class VideoController { @GetMapping("/madou/{id}") public JsonResult getMadouVideoById(@PathVariable Long id) { MadouVideoInfo madouVideoInfo = madouVideoService.getById(id); - madouVideoInfo.setM3u8Url("/video/" + id + "/index.m3u8"); + madouVideoInfo.setM3u8Url("/api/video/" + id + "/index.m3u8"); return JsonResult.ok(madouVideoInfo); } diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 6180182..ebe0af8 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -9,7 +9,4 @@ spring: # 日志级别,生产环境改为warn logging: level: - root: info -server: - servlet: - context-path: /api \ No newline at end of file + root: info \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index fc7e4d0..2f7e697 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,4 +1,6 @@ - +server: + servlet: + context-path: /api minio: endpoint: http://minio.yuchat:9000