diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/ChargingController.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/ChargingController.java index d7e7aef2..a3e04698 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/ChargingController.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/controller/ChargingController.java @@ -135,7 +135,7 @@ public class ChargingController { public static R checkPile(Map cachePile) { - if (cachePile == null) { + if (cachePile == null || cachePile.get("status") == null) { return R.fail("充电桩未注册"); } String status = cachePile.get("status").toString();