From cc9f637afe9cfb32203c8b3970f0e2388e587a37 Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Wed, 25 Jun 2025 23:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LTEMvcApp/Controllers/HomeController.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/LTEMvcApp/Controllers/HomeController.cs b/LTEMvcApp/Controllers/HomeController.cs index 627a357..2d826cc 100644 --- a/LTEMvcApp/Controllers/HomeController.cs +++ b/LTEMvcApp/Controllers/HomeController.cs @@ -136,9 +136,17 @@ public class HomeController : Controller /// /// 测试客户端配置页面 /// - public IActionResult TestClientConfig() + public IActionResult TestClientConfig(string address = null) { - var testConfig = _webSocketManager.GetDefaultTestClientConfig(); + ClientConfig testConfig; + if (!string.IsNullOrEmpty(address)) + { + testConfig = _webSocketManager.GetTestClientConfigByAddress(address); + } + else + { + testConfig = _webSocketManager.GetDefaultTestClientConfig(); + } var allTestConfigs = _webSocketManager.GetAllTestClientConfigs(); ViewBag.TestConfig = testConfig;