|
|
@ -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<String> activeProfile = ProfileUtil.getActiveProfile(); |
|
|
|
//dev环境不校验签名
|
|
|
|
if(/*!activeProfile.contains("dev") && */!StringUtils.equals(sign, computeSign.toUpperCase())) { |
|
|
|