From 47c5abd062336ad49c88e59e376db1d5ab300973 Mon Sep 17 00:00:00 2001 From: liuchen864 <23082234@qq.com> Date: Mon, 9 Jun 2025 07:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/win/web/controller/base/CommandController.java | 10 +++++----- .../com/win/web/controller/base/ShellController.java | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/win-admin/src/main/java/com/win/web/controller/base/CommandController.java b/win-admin/src/main/java/com/win/web/controller/base/CommandController.java index 3656e44..7cbc845 100644 --- a/win-admin/src/main/java/com/win/web/controller/base/CommandController.java +++ b/win-admin/src/main/java/com/win/web/controller/base/CommandController.java @@ -62,12 +62,12 @@ public class CommandController { } String tmp = interfaceName + body + "Wenyin@2024" + timestamp; String computeSign = DigestUtils.md5DigestAsHex(tmp.getBytes()); - long tenTimestamp = timestamp + (10 * 60 * 1000); // 计算10分钟后的时间戳 - long currentTimestamp = System.currentTimeMillis(); // 获取当前时间戳 + //long tenTimestamp = timestamp + (10 * 60 * 1000); // 计算10分钟后的时间戳 + //long currentTimestamp = System.currentTimeMillis(); // 获取当前时间戳 //过期 - if(tenTimestamp < currentTimestamp) { - return AjaxResult.error(HttpStatus.EXPIRE_ERROR, "请求已过期"); - } + //if(tenTimestamp < currentTimestamp) { + // return AjaxResult.error(HttpStatus.EXPIRE_ERROR, "请求已过期"); + //} List activeProfile = ProfileUtil.getActiveProfile(); //dev环境不校验签名 if(/*!activeProfile.contains("dev") && */!StringUtils.equals(sign, computeSign.toUpperCase())) { diff --git a/win-admin/src/main/java/com/win/web/controller/base/ShellController.java b/win-admin/src/main/java/com/win/web/controller/base/ShellController.java index 839ffc3..97cb27d 100644 --- a/win-admin/src/main/java/com/win/web/controller/base/ShellController.java +++ b/win-admin/src/main/java/com/win/web/controller/base/ShellController.java @@ -63,12 +63,12 @@ public class ShellController { } String tmp = interfaceName + body + "Wenyin@2024" + timestamp; String computeSign = DigestUtils.md5DigestAsHex(tmp.getBytes()); - long tenTimestamp = timestamp + (10 * 60 * 1000); // 计算10分钟后的时间戳 - long currentTimestamp = System.currentTimeMillis(); // 获取当前时间戳 + //long tenTimestamp = timestamp + (10 * 60 * 1000); // 计算10分钟后的时间戳 + //long currentTimestamp = System.currentTimeMillis(); // 获取当前时间戳 //过期 - if(tenTimestamp < currentTimestamp) { - return AjaxResult.error(HttpStatus.EXPIRE_ERROR, "请求已过期"); - } + //if(tenTimestamp < currentTimestamp) { + // return AjaxResult.error(HttpStatus.EXPIRE_ERROR, "请求已过期"); + //} List activeProfile = ProfileUtil.getActiveProfile(); //dev环境不校验签名 if(/*!activeProfile.contains("dev") && */!StringUtils.equals(sign, computeSign.toUpperCase())) {