This commit is contained in:
jl
2025-06-26 10:21:15 +08:00
parent 7ef2bbeb19
commit 7a359923d9
2 changed files with 30 additions and 20 deletions

View File

@ -1,6 +1,7 @@
using ComposerSDK;
using Epost.BLL;
using Epost.Common;
using Epost.DAL;
using Epost.DAL.Cache;
using Epost.DAL.Enum;
using Epost.DPS.Controllers;
@ -9,6 +10,7 @@ using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.Entity.Core.Metadata.Edm;
using System.Linq;
using System.Net;
using System.Net.Http;
@ -34,6 +36,8 @@ namespace Epost.TestToolsWeb.Controllers
BoxQueueBLL quboxbll = new BoxQueueBLL();
JobDownCacheDAL JobCache = new JobDownCacheDAL();
HttpHelper http = new HttpHelper();
AddressstorageDAL addal = new AddressstorageDAL();
ErrorLogDAL errdal = new ErrorLogDAL();
[Route("ProcessingResult")]
[HttpPost]
public string ProcessingResult([FromBody]ResultMessageModel data)
@ -84,14 +88,20 @@ namespace Epost.TestToolsWeb.Controllers
LabelParamModel lbmodel = new LabelParamModel();
lbmodel.Address = data.Address;
lbmodel.Uid = data.Address;
lbmodel.Type = data.Type;
string stype = "N";
if (data.Type == "2")
{ stype = "C"; }
lbmodel.Type = stype;
lbmodel.ControlIP = data.IP;
combll.FORMAT_DEVICE(lbmodel);
LogHelper.WriteLogInfo("设备报错:"+JsonHelper.SerializeObject(data), Log_Type.ERROR);
}
ErrorLogModel errmodel = new ErrorLogModel();
errmodel.Address = data.Address;
errmodel.ControlIP = data.IP;
addal.UpdateErrorState(data.Address, data.IP);
}
}
catch (Exception ex)