diff --git a/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordBusbarTempController.java b/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordBusbarTempController.java index 718b249..9328fdb 100644 --- a/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordBusbarTempController.java +++ b/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordBusbarTempController.java @@ -120,7 +120,7 @@ public class RecordBusbarTempController extends BaseController @GetMapping("/getVisiblePhoto/{filePath}") public ResponseEntity getVisiblePhoto(@PathVariable String filePath) { // 获取配置文件中的路径application.yml的profile - String myPath = RuoYiConfig.getProfile(); + String myPath = RuoYiConfig.getMyPath(); // 构建文件的完整路径 String fileUrl = myPath + "/日志信息/可见光图像/" + filePath; // 创建文件对象 @@ -166,7 +166,7 @@ public class RecordBusbarTempController extends BaseController @GetMapping("/getThermalPhoto/{filePath}") public ResponseEntity getThermalPhoto (@PathVariable String filePath) { // 获取配置文件中的路径application.yml的profile - String myPath = RuoYiConfig.getProfile(); + String myPath = RuoYiConfig.getMyPath(); // 构建完整的文件路径 String fileUrl = myPath + "/日志信息/红外热成像/" + filePath; // 创建文件对象 diff --git a/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordInspectionCabinetController.java b/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordInspectionCabinetController.java index d0d168b..9cc1545 100644 --- a/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordInspectionCabinetController.java +++ b/ruoyi-module/src/main/java/com/ruoyi/record/controller/RecordInspectionCabinetController.java @@ -130,7 +130,7 @@ public class RecordInspectionCabinetController extends BaseController @GetMapping("/getThermalVideo/{filePath}") public ResponseEntity getThermalVideo(@PathVariable String filePath) { // 获取配置文件中的路径application.yml的profile - String myPath = RuoYiConfig.getProfile(); + String myPath = RuoYiConfig.getMyPath(); // 构建完整的文件路径 String fileUrl = myPath + "/日志信息/巡检录像/热成像/" + filePath; // 创建文件对象 @@ -172,7 +172,7 @@ public class RecordInspectionCabinetController extends BaseController @GetMapping("/getVisibleVideo/{filePath}") public ResponseEntity getVisibleVideo(@PathVariable String filePath) { // 获取配置文件中的路径application.yml的profile - String myPath = RuoYiConfig.getProfile(); + String myPath = RuoYiConfig.getMyPath(); // 构建完整的文件路径 String fileUrl = myPath + "/日志信息/巡检录像/可见光/" + filePath; // 创建文件对象