master
lxw 3 weeks ago
parent 06e5498cb1
commit a8f997a5bb

@ -127,9 +127,9 @@ public class PileUploadChargeRecordHandler : SimpleChannelInboundHandler<PileUpl
string sn, DateTime startTime, DateTime endTime, float chargingPower, byte socBefore, byte socAfter)
{
ChargerPile chargerPile = msg.Pn==1?client.ChargerPile1:client.ChargerPile2;
req.pn = msg.Pn.ToString();
req.pn = chargerPile.pn;
req.ct = chargerPile.ct;
req.cp = chargerPile.cp;
req.cp = chargerPile.cp==null?"0":chargerPile.cp;
req.st = chargerPile.st;
req.cosn = chargerPile.cosn != null ? chargerPile.cosn : req.cosn;
req.cst = startTime;
@ -137,6 +137,7 @@ public class PileUploadChargeRecordHandler : SimpleChannelInboundHandler<PileUpl
req.ceq = chargingPower;
req.cssoc = socBefore;
req.cesoc = socAfter;
req.con = chargerPile.con;
/*List<PeriodReq> periodList = new List<PeriodReq>();
// 利用反射组装充电时间段数据

Loading…
Cancel
Save