Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Commit 2b3a594

Browse files
committed
opti: 修复 /api/status 无法正确返回的问题
1 parent b59bade commit 2b3a594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CSharp-OpenBMCLAPI/Modules/HttpServiceProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ await context.Response.WriteAsync(JsonConvert.SerializeObject(new
139139
}));
140140
break;
141141
case "status":
142-
await context.Response.WriteAsync("正常");
142+
await context.Response.WriteAsync(cluster.IsEnabled ? "正常" : "关闭");
143143
break;
144144
case "uptime":
145145
await context.Response.WriteAsync(SharedData.DataStatistician.Uptime.ToString("0.00"));

0 commit comments

Comments
 (0)