Fang
2022-03-07 bea63f67e75ea6c38d946c2ee463260fcf815f87
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/response/impl/RegisterResponseProcessor.java
@@ -85,19 +85,18 @@
         redisCatchStorage.delPlatformRegisterInfo(callId);
         parentPlatform.setStatus("注册".equals(action));
         // 取回Expires设置,避免注销过程中被置为0
         ParentPlatform parentPlatformTmp = storager.queryParentPlatByServerGBId(platformGBId);
         String expires = parentPlatformTmp.getExpires();
         parentPlatform.setExpires(expires);
         parentPlatform.setId(parentPlatformTmp.getId());
         if (!parentPlatformCatch.getParentPlatform().getExpires().equals("0")) {
            ParentPlatform parentPlatformTmp = storager.queryParentPlatByServerGBId(platformGBId);
            String expires = parentPlatformTmp.getExpires();
            parentPlatform.setExpires(expires);
            parentPlatform.setId(parentPlatformTmp.getId());
            redisCatchStorage.updatePlatformRegister(parentPlatform);
            redisCatchStorage.updatePlatformKeepalive(parentPlatform);
            parentPlatformCatch.setParentPlatform(parentPlatform);
            redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
         }
         storager.updateParentPlatformStatus(platformGBId, "注册".equals(action));
         redisCatchStorage.updatePlatformRegister(parentPlatform);
         redisCatchStorage.updatePlatformKeepalive(parentPlatform);
         parentPlatformCatch.setParentPlatform(parentPlatform);
         redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
      }
   }