枪状态字段处理逻辑完善
This commit is contained in:
parent
19c5590271
commit
dd213549de
@ -55,6 +55,7 @@ public class RegisterLogic implements ServiceLogic {
|
|||||||
String gunId = String.format("%02d", gunN);
|
String gunId = String.format("%02d", gunN);
|
||||||
String gunkey = "gun:".concat(pileNo.concat(gunId));
|
String gunkey = "gun:".concat(pileNo.concat(gunId));
|
||||||
Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
|
Map<String, Object> cacheGun = REDIS.getCacheMap(gunkey);
|
||||||
|
cacheGun.put("status", DISCONNECTED);
|
||||||
cacheGun.put("svcSrv", localIPAndPort);
|
cacheGun.put("svcSrv", localIPAndPort);
|
||||||
REDIS.setCacheMap(gunkey, cacheGun);
|
REDIS.setCacheMap(gunkey, cacheGun);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user