Browse Source

优化新增功能

qitz 2 years ago
parent
commit
08717e84be

+ 1
- 8
ruoyi-common/src/main/java/com/ruoyi/common/utils/CheckSignatuerUtils.java View File

@@ -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