优化回调

This commit is contained in:
qitz
2024-03-14 10:46:47 +08:00
parent b4e54bd501
commit d7d48a3ff3
2 changed files with 8 additions and 7 deletions
@@ -33,19 +33,14 @@ public class DigesdateUtils {
String stmpHex; String stmpHex;
for (int n = 0; byteArrayData != null && n < byteArrayData.length; n++) { for (int n = 0; byteArrayData != null && n < byteArrayData.length; n++) {
stmpHex = Integer.toHexString(byteArrayData[n] & 0XFF); stmpHex = Integer.toHexString(byteArrayData[n] & 0XFF);
if (stmpHex.length() == 1){ if (stmpHex.length() == 1)
hashBuilder.append('0'); hashBuilder.append('0');
}else {
hashBuilder.append(stmpHex); hashBuilder.append(stmpHex);
} }
}
return hashBuilder.toString(); return hashBuilder.toString();
} }
} }
@@ -2,6 +2,9 @@ package com.ruoyi.wisdomarbitrate.utils;
import com.ruoyi.common.utils.EsignApplicaConfig; import com.ruoyi.common.utils.EsignApplicaConfig;
import com.ruoyi.common.utils.StringUtils; 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.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;
@@ -17,6 +20,7 @@ public class SignVerifyUtils {
private static String eSignAppSecret = EsignApplicaConfig.EsignAppSecret; private static String eSignAppSecret = EsignApplicaConfig.EsignAppSecret;
public static boolean checkSignuter() throws Exception { public static boolean checkSignuter() throws Exception {
HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest(); HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
String orialsignature = httprequest.getHeader("X-Tsign-Open-SIGNATURE"); String orialsignature = httprequest.getHeader("X-Tsign-Open-SIGNATURE");
@@ -40,6 +44,8 @@ public class SignVerifyUtils {
} }
} }
public static String getHttpreqQuery() { public static String getHttpreqQuery() {
HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest(); HttpServletRequest httprequest = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
List<String> reqNames= new ArrayList(); List<String> reqNames= new ArrayList();