| | |
| | | */ |
| | | public void start(){ |
| | | thread = new Thread(() -> { |
| | | try{ |
| | | Thread.sleep(200); |
| | | log.info("++++++++ 开始验证许可证 ++++++++"); |
| | | if (!mainService.licenseVerify()){ |
| | | SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE); |
| | | log.info("++++++++ 验证许可证失败 ++++++++"); |
| | | } else { |
| | | SystemProperties.WCS_RUNNING_STATUS.set(Boolean.TRUE); |
| | | log.info("++++++++ 验证许可证成功 ++++++++"); |
| | | } |
| | | } catch (Exception e) {} |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | // 间隔 |
| | |
| | | if (!SystemProperties.WCS_RUNNING_STATUS.get()) { |
| | | continue; |
| | | } |
| | | |
| | | //更新位置信息 |
| | | mainService.updateStePositionNearby(); |
| | | //更新位置信息 |