Commit 7dc4b9e705c65f5a63bbea6de7bb85b8b916ab56

Authored by 谭毅彬
1 parent 32e95bd1

添加激活码校验开关

Signed-off-by: TanYibin <5491541@qq.com>
huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java
@@ -229,6 +229,10 @@ public class LoginController { @@ -229,6 +229,10 @@ public class LoginController {
229 229
230 private Result<JSONObject> checkSystemActivationCode() throws IOException { 230 private Result<JSONObject> checkSystemActivationCode() throws IOException {
231 Result<JSONObject> result = new Result<JSONObject>(); 231 Result<JSONObject> result = new Result<JSONObject>();
  232 + // 是否需要校验激活码
  233 + if(applicationConfig.getCheckSystemActivationCode() != null && !applicationConfig.getCheckSystemActivationCode()) {
  234 + return result;
  235 + }
232 FileInputStream inputStream = null; 236 FileInputStream inputStream = null;
233 FileOutputStream outputStream = null; 237 FileOutputStream outputStream = null;
234 File file = null; 238 File file = null;
huaheng-wms-core/src/main/java/org/jeecg/utils/config/ApplicationConfig.java
@@ -17,5 +17,8 @@ public class ApplicationConfig { @@ -17,5 +17,8 @@ public class ApplicationConfig {
17 17
18 /** 项目号 */ 18 /** 项目号 */
19 private String artifactId; 19 private String artifactId;
20 - 20 +
  21 + /** 是否检查系统激活码 */
  22 + private Boolean checkSystemActivationCode;
  23 +
21 } 24 }