Przeglądaj źródła

Merge branch 'qtz1' of SH-Arbitrate/Mediation-Backend into dev

qtz 2 lat temu
rodzic
commit
0fc6595fb3

+ 2
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/DigesdateUtils.java Wyświetl plik

33
         String stmpHex;
33
         String stmpHex;
34
         for (int n = 0; byteArrayData != null && n < byteArrayData.length; n++) {
34
         for (int n = 0; byteArrayData != null && n < byteArrayData.length; n++) {
35
             stmpHex = Integer.toHexString(byteArrayData[n] & 0XFF);
35
             stmpHex = Integer.toHexString(byteArrayData[n] & 0XFF);
36
-            if (stmpHex.length() == 1){
36
+            if (stmpHex.length() == 1)
37
                 hashBuilder.append('0');
37
                 hashBuilder.append('0');
38
-            }else {
39
-                hashBuilder.append(stmpHex);
40
-            }
38
+            hashBuilder.append(stmpHex);
41
         }
39
         }
42
         return hashBuilder.toString();
40
         return hashBuilder.toString();
43
     }
41
     }
45
 
43
 
46
 
44
 
47
 
45
 
48
-
49
-
50
-
51
 }
46
 }

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignVerifyUtils.java Wyświetl plik

2
 
2
 
3
 import com.ruoyi.common.utils.EsignApplicaConfig;
3
 import com.ruoyi.common.utils.EsignApplicaConfig;
4
 import com.ruoyi.common.utils.StringUtils;
4
 import com.ruoyi.common.utils.StringUtils;
5
+import com.ruoyi.wisdomarbitrate.service.miniprogress.impl.IdentityAuthenticationServiceImpl;
6
+import org.slf4j.Logger;
7
+import org.slf4j.LoggerFactory;
5
 import org.springframework.web.context.request.RequestContextHolder;
8
 import org.springframework.web.context.request.RequestContextHolder;
6
 import org.springframework.web.context.request.ServletRequestAttributes;
9
 import org.springframework.web.context.request.ServletRequestAttributes;
7
 
10
 
17
     private static String eSignAppSecret = EsignApplicaConfig.EsignAppSecret;
20
     private static String eSignAppSecret = EsignApplicaConfig.EsignAppSecret;
18
 
21
 
19
 
22
 
23
+
20
     public static boolean checkSignuter() throws Exception {
24
     public static boolean checkSignuter() throws Exception {
21
         HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
25
         HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
22
         String orialsignature =  httprequest.getHeader("X-Tsign-Open-SIGNATURE");
26
         String orialsignature =  httprequest.getHeader("X-Tsign-Open-SIGNATURE");
40
         }
44
         }
41
     }
45
     }
42
 
46
 
47
+
48
+
43
     public static  String getHttpreqQuery() {
49
     public static  String getHttpreqQuery() {
44
         HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
50
         HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
45
         List<String> reqNames= new ArrayList();
51
         List<String> reqNames= new ArrayList();