From 7f17f879a4728a0dda3e8bbc0574cc7170920a6a Mon Sep 17 00:00:00 2001 From: panshuling321 Date: Wed, 15 Jun 2022 16:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E6=A1=A9=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/xhpc/pp/controller/ChargingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();