From d0ed00b27764d916a0ef8ee9731a4be9daa64e74 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期三, 08 二月 2023 10:34:36 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/web/AuthController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/common/web/AuthController.java b/src/main/java/com/zy/common/web/AuthController.java index b4a55a8..9c2bffa 100644 --- a/src/main/java/com/zy/common/web/AuthController.java +++ b/src/main/java/com/zy/common/web/AuthController.java @@ -355,14 +355,14 @@ } } - @PostMapping(value = "/system/secret/auth") + @PostMapping(value = "/system/license/auth") @ManagerAuth - public R systemSecret(@RequestParam(value = "secret") String secret) { - if (Cools.isEmpty(secret)) { + public R systemSecret(@RequestParam(value = "license") String license) { + if (Cools.isEmpty(license)) { return R.error("璇疯緭鍏ユ縺娲荤爜"); } // 楠岃瘉婵�娲荤爜 - String timeStr = AesUtils.decrypt(secret, SystemProperties.SALT); + String timeStr = AesUtils.decrypt(license, SystemProperties.SALT); if (null == timeStr) { return R.error("婵�娲荤爜閿欒"); } @@ -370,7 +370,7 @@ if (new Date().getTime() >= exprTime.getTime()) { return R.error("婵�娲荤爜宸插け鏁�"); } - boolean result = SystemProperties.saveActivationCode(OSinfo.getOSname().getActivationCodePath(), secret); + boolean result = SystemProperties.saveActivationCode(OSinfo.getOSname().getActivationCodePath(), license); if (!result) { return R.error("婵�娲诲け璐�"); } -- Gitblit v1.9.1