|
|
@ -45,10 +45,12 @@ public class ChargeController : ControllerBase
|
|
|
|
// 功率赋值
|
|
|
|
// 功率赋值
|
|
|
|
foreach (var binInfoResp in binInfoList)
|
|
|
|
foreach (var binInfoResp in binInfoList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ChargerClient? chargerClient = ClientMgr.GetBySn(binInfoResp.Code);
|
|
|
|
|
|
|
|
|
|
|
|
ChargerClient? chargerClient = ClientMgr.GetBySn(binInfoResp.ChargerNo);
|
|
|
|
if (chargerClient != null)
|
|
|
|
if (chargerClient != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
binInfoResp.power = chargerClient.RealTimeChargePower;
|
|
|
|
binInfoResp.power = chargerClient.RealTimeChargePower;
|
|
|
|
|
|
|
|
binInfoResp.ChargeConnectFlag = chargerClient.Connected;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|