diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/RegisterLogic.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/RegisterLogic.java index 1ca61561..74eb07b6 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/RegisterLogic.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/RegisterLogic.java @@ -55,6 +55,7 @@ public class RegisterLogic implements ServiceLogic { String gunId = String.format("%02d", gunN); String gunkey = "gun:".concat(pileNo.concat(gunId)); Map cacheGun = REDIS.getCacheMap(gunkey); + cacheGun.put("status", DISCONNECTED); cacheGun.put("svcSrv", localIPAndPort); REDIS.setCacheMap(gunkey, cacheGun); }