From dc0b17d8d9b6f2c17165cd394dbd74e304422a5c Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Tue, 14 Oct 2025 17:22:32 +0800
Subject: [PATCH] 1.重新修改文件分类。 2.整理文件名称统一规范。 3.修改新增时ID类型

---
 ard-work/src/main/java/com/ard/work/component/forest/MyAddressSource.java |    6 +++---
 1 files changed, 3 insertions(+), 3 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..1b1e497 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,10 +13,10 @@
 public class MyAddressSource implements AddressSource {
 
     @Resource
-    private IArdServerService ardServerService;
+    private IArdServerInfoService ardServerService;
     @Override
     public ForestAddress getAddress(ForestRequest request) {
-        String serverKey = (String) request.getVariableValue("serverId");
+        String serverKey = request.varAsString("serverId");
         ArdServerInfo serverInfo = ardServerService.selectArdServerManagementById(serverKey);
         // 返回 Forest 地址对象
         return new ForestAddress(serverInfo.getHost(), serverInfo.getHttpPort());

--
Gitblit v1.9.3