Browse Source

大大

feature/MultiClientLog
root 1 month ago
parent
commit
cc9f637afe
  1. 12
      LTEMvcApp/Controllers/HomeController.cs

12
LTEMvcApp/Controllers/HomeController.cs

@ -136,9 +136,17 @@ public class HomeController : Controller
/// <summary>
/// 测试客户端配置页面
/// </summary>
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;

Loading…
Cancel
Save