优化新增功能

This commit is contained in:
qitz
2024-03-22 10:06:10 +08:00
parent b0e0123c4a
commit 08717e84be
@@ -36,7 +36,6 @@ public class CheckSignatuerUtils {
String timestampstr = reqParam.getHeader("timestampstr"); String timestampstr = reqParam.getHeader("timestampstr");
String signstr = reqParam.getHeader("signstr"); String signstr = reqParam.getHeader("signstr");
String accessSec = "mCFMA6ffe938v79m"; String accessSec = "mCFMA6ffe938v79m";
// String bodyParams = getRequestBodyStr(reqParam);
String newSignuter = getSign(paramsbody, accessSec,Long.parseLong(timestampstr)); String newSignuter = getSign(paramsbody, accessSec,Long.parseLong(timestampstr));
if (StringUtils.equals(signstr, newSignuter)) { if (StringUtils.equals(signstr, newSignuter)) {
return true; return true;
@@ -46,13 +45,7 @@ public class CheckSignatuerUtils {
} }
// private static String getRequestBodyStr(HttpServletRequest request) throws IOException {
// String body = null;
// if (request instanceof BodyReaderRequestWrapper) {
// body = IoUtil.readUtf8(request.getInputStream());
// }
// return body;
// }