增加电量报警模块
但是只是一部分功能
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user