枪状态字段处理逻辑完善

This commit is contained in:
ZZ 2021-08-23 15:21:19 +08:00
parent 19c5590271
commit dd213549de

View File

@ -55,6 +55,7 @@ public class RegisterLogic implements ServiceLogic {
String gunId = String.format("%02d", gunN);
String gunkey = "gun:".concat(pileNo.concat(gunId));
Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
cacheGun.put("status", DISCONNECTED);
cacheGun.put("svcSrv", localIPAndPort);
REDIS.setCacheMap(gunkey, cacheGun);
}