From e775dfbdf46699d2046e35d4bbe4a4bbcd831fb3 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Wed, 15 Oct 2025 09:14:32 +0800
Subject: [PATCH] 1.重新修改system文件相关分类,按功能模块分文件夹。

---
 ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java b/ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java
index c707967..079e96c 100644
--- a/ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java
+++ b/ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java
@@ -1,7 +1,7 @@
 package com.ard.work.component.forest;
 
 import com.ard.work.domain.entity.ArdServerInfo;
-import com.ard.work.service.IArdServerService;
+import com.ard.work.service.IArdServerInfoService;
 import com.dtflys.forest.callback.AddressSource;
 import com.dtflys.forest.http.ForestAddress;
 import com.dtflys.forest.http.ForestRequest;
@@ -13,11 +13,11 @@
 public class MyAddressSource implements AddressSource {
 
     @Resource
-    private IArdServerService ardServerService;
+    private IArdServerInfoService ardServerService;
     @Override
     public ForestAddress getAddress(ForestRequest request) {
-        String serverKey = (String) request.getVariableValue("serverId");
-        ArdServerInfo serverInfo = ardServerService.selectArdServerManagementById(serverKey);
+        String serverKey = request.varAsString("serverId");
+        ArdServerInfo serverInfo = ardServerService.selectArdServerInfoById(serverKey);
         // 返回 Forest 地址对象
         return new ForestAddress(serverInfo.getHost(), serverInfo.getHttpPort());
     }

--
Gitblit v1.9.3