增加电量报警模块

但是只是一部分功能
This commit is contained in:
2026-03-30 17:55:55 +08:00
parent 696144b2ff
commit 182186e1fb
22 changed files with 147 additions and 157 deletions

View File

@@ -4421,7 +4421,7 @@ namespace WebSite.Controllers
Request.InputStream.Read(byts, 0, byts.Length);
string jsonData = System.Text.Encoding.UTF8.GetString(byts);
JWTData JJJ = null;
int code = 0;
int code = 401;
string msg = "";
var dic = JsonConvert.DeserializeObject<Dictionary<string, string>>(jsonData);
if (dic != null)
@@ -5329,10 +5329,10 @@ namespace WebSite.Controllers
long jishu_error = Interlocked.Read(ref MvcApplication.UDPServerErrorCount);
if (jishu_error >= 3)
{
//logger.Error("重启了UDP服务器");
//Interlocked.Exchange(ref MvcApplication.UDPServerErrorCount, 0);
//var hostServer = (IHostServer)MvcApplication.cxt.GetObject("RCUHost.HostServer");
//hostServer.Start();
logger.Error("重启了UDP服务器");
Interlocked.Exchange(ref MvcApplication.UDPServerErrorCount, 0);
var hostServer = (IHostServer)MvcApplication.cxt.GetObject("RCUHost.HostServer");
hostServer.Start();
}
var TotalKey = "UDPPackage_TotalRecvPackage";
UDPPackageCount LLL_T = null;
@@ -6081,7 +6081,6 @@ namespace WebSite.Controllers
}
#region
/// <summary>
@@ -6816,6 +6815,7 @@ namespace WebSite.Controllers
{
try
{
HostServer.StopConsumerTasks();
if (key.Equals("blw^_^wlb"))
{
var hostServer = (IHostServer)MvcApplication.cxt.GetObject("RCUHost.HostServer");