From 7dc4b9e705c65f5a63bbea6de7bb85b8b916ab56 Mon Sep 17 00:00:00 2001 From: TanYibin <5491541@qq.com> Date: Tue, 28 Mar 2023 14:21:27 +0800 Subject: [PATCH] 添加激活码校验开关 --- huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java | 4 ++++ huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java index 99a5353..04ab0b9 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java @@ -229,6 +229,10 @@ public class LoginController { private Result<JSONObject> checkSystemActivationCode() throws IOException { Result<JSONObject> result = new Result<JSONObject>(); + // 是否需要校验激活码 + if(applicationConfig.getCheckSystemActivationCode() != null && !applicationConfig.getCheckSystemActivationCode()) { + return result; + } FileInputStream inputStream = null; FileOutputStream outputStream = null; File file = null; diff --git a/huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java b/huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java index 524a31f..708fac0 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java @@ -17,5 +17,8 @@ public class ApplicationConfig { /** 项目号 */ private String artifactId; - + + /** 是否检查系统激活码 */ + private Boolean checkSystemActivationCode; + } -- libgit2 0.22.2