优化新增功能 #339
@@ -36,7 +36,6 @@ public class CheckSignatuerUtils {
|
||||
String timestampstr = reqParam.getHeader("timestampstr");
|
||||
String signstr = reqParam.getHeader("signstr");
|
||||
String accessSec = "mCFMA6ffe938v79m";
|
||||
// String bodyParams = getRequestBodyStr(reqParam);
|
||||
String newSignuter = getSign(paramsbody, accessSec,Long.parseLong(timestampstr));
|
||||
if (StringUtils.equals(signstr, newSignuter)) {
|
||||
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;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user