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

This commit was merged in pull request #116.
This commit is contained in:
qtz
2024-03-14 10:51:13 +08:00
committed by Gitea
2 changed files with 8 additions and 7 deletions
@@ -33,11 +33,9 @@ public class DigesdateUtils {
String stmpHex;
for (int n = 0; byteArrayData != null && n < byteArrayData.length; n++) {
stmpHex = Integer.toHexString(byteArrayData[n] & 0XFF);
if (stmpHex.length() == 1){
if (stmpHex.length() == 1)
hashBuilder.append('0');
}else {
hashBuilder.append(stmpHex);
}
hashBuilder.append(stmpHex);
}
return hashBuilder.toString();
}
@@ -45,7 +43,4 @@ public class DigesdateUtils {
}
@@ -2,6 +2,9 @@ package com.ruoyi.wisdomarbitrate.utils;
import com.ruoyi.common.utils.EsignApplicaConfig;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.wisdomarbitrate.service.miniprogress.impl.IdentityAuthenticationServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
@@ -17,6 +20,7 @@ public class SignVerifyUtils {
private static String eSignAppSecret = EsignApplicaConfig.EsignAppSecret;
public static boolean checkSignuter() throws Exception {
HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
String orialsignature = httprequest.getHeader("X-Tsign-Open-SIGNATURE");
@@ -40,6 +44,8 @@ public class SignVerifyUtils {
}
}
public static String getHttpreqQuery() {
HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
List<String> reqNames= new ArrayList();