From c9b270dae703ee077a4e41013d7662c5e61afd29 Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期一, 26 五月 2025 23:02:15 +0800 Subject: [PATCH] #ZH --- src/main/java/com/zy/asrs/controller/ConsoleController.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/ConsoleController.java b/src/main/java/com/zy/asrs/controller/ConsoleController.java index ef02c5b..f4e6b38 100644 --- a/src/main/java/com/zy/asrs/controller/ConsoleController.java +++ b/src/main/java/com/zy/asrs/controller/ConsoleController.java @@ -26,6 +26,7 @@ import com.zy.core.properties.SlaveProperties; import com.zy.core.properties.SystemProperties; import com.zy.core.thread.*; +import com.zy.system.entity.license.LicenseVerify; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -69,7 +70,16 @@ } } Thread.sleep(200L); - SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE); + //楠岃瘉璁稿彲璇佹槸鍚︽湁鏁� + try{ + if (new LicenseVerify().verify()){ + SystemProperties.WCS_RUNNING_STATUS.set(param.getOperatorType()==1?Boolean.TRUE:Boolean.FALSE); + return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); + } + } catch (Exception e){ + log.error("璁稿彲璇侀獙璇佸け璐ワ紒锛佸紓甯革細{}",e.getMessage()); + } + SystemProperties.WCS_RUNNING_STATUS.set(Boolean.FALSE); return R.ok().add(Cools.add("status", SystemProperties.WCS_RUNNING_STATUS.get())); } -- Gitblit v1.9.1