|
|
@@ -36,7 +36,6 @@ public class CheckSignatuerUtils {
|
|
36
|
36
|
String timestampstr = reqParam.getHeader("timestampstr");
|
|
37
|
37
|
String signstr = reqParam.getHeader("signstr");
|
|
38
|
38
|
String accessSec = "mCFMA6ffe938v79m";
|
|
39
|
|
-// String bodyParams = getRequestBodyStr(reqParam);
|
|
40
|
39
|
String newSignuter = getSign(paramsbody, accessSec,Long.parseLong(timestampstr));
|
|
41
|
40
|
if (StringUtils.equals(signstr, newSignuter)) {
|
|
42
|
41
|
return true;
|
|
|
@@ -46,13 +45,7 @@ public class CheckSignatuerUtils {
|
|
46
|
45
|
|
|
47
|
46
|
}
|
|
48
|
47
|
|
|
49
|
|
-// private static String getRequestBodyStr(HttpServletRequest request) throws IOException {
|
|
50
|
|
-// String body = null;
|
|
51
|
|
-// if (request instanceof BodyReaderRequestWrapper) {
|
|
52
|
|
-// body = IoUtil.readUtf8(request.getInputStream());
|
|
53
|
|
-// }
|
|
54
|
|
-// return body;
|
|
55
|
|
-// }
|
|
|
48
|
+
|
|
56
|
49
|
|
|
57
|
50
|
|
|
58
|
51
|
|