|
|
@ -21,6 +21,8 @@ public class PileStartChargeHandler : IBaseHandler
|
|
|
|
public void Handle(string t)
|
|
|
|
public void Handle(string t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PileStartCharge? pileStartCharge = JsonConvert.DeserializeObject<PileStartCharge>(t);
|
|
|
|
PileStartCharge? pileStartCharge = JsonConvert.DeserializeObject<PileStartCharge>(t);
|
|
|
|
|
|
|
|
if(string.IsNullOrEmpty(pileStartCharge.cp))
|
|
|
|
|
|
|
|
pileStartCharge.cp = "0";
|
|
|
|
if (pileStartCharge != null)
|
|
|
|
if (pileStartCharge != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HttpUtil.SendPostRequest(pileStartCharge, "http://127.0.0.1:5035/api/OutCharger/SendStartOutCharger");
|
|
|
|
HttpUtil.SendPostRequest(pileStartCharge, "http://127.0.0.1:5035/api/OutCharger/SendStartOutCharger");
|
|
|
|