From 7508f27513716f6581671f3ce41731e6edf30b0d Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 18 Nov 2024 15:24:08 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=B0=86=20RuoYiConfig.getProfile?= =?UTF-8?q?()=20=E6=96=B9=E6=B3=95=E6=9B=BF=E6=8D=A2=E4=B8=BA=20RuoYiConfi?= =?UTF-8?q?g.getMyPath()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/record/controller/RecordBusbarTempController.java | 4 ++-- .../record/controller/RecordInspectionCabinetController.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; // 创建文件对象