优化签署回调

This commit is contained in:
qitz
2024-03-14 16:13:22 +08:00
parent d7d48a3ff3
commit abeca57c83
2 changed files with 0 additions and 14 deletions
@@ -1014,9 +1014,6 @@ public class MsSignSealServiceImpl implements MsSignSealService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public AjaxResult signSeaalCaseApplicaCallback(String reqbodystr) throws EsignDemoException, IOException { public AjaxResult signSeaalCaseApplicaCallback(String reqbodystr) throws EsignDemoException, IOException {
System.out.println("请求参数reqbodystr:----------->>>>>>"+reqbodystr);
JSONObject jsonObjectCallback = JSONObject.parseObject(reqbodystr); JSONObject jsonObjectCallback = JSONObject.parseObject(reqbodystr);
Gson gson = new Gson(); Gson gson = new Gson();
if (jsonObjectCallback != null) { if (jsonObjectCallback != null) {
@@ -1028,11 +1025,6 @@ public class MsSignSealServiceImpl implements MsSignSealService {
JSONObject psnAccount = operator.getJSONObject("psnAccount"); JSONObject psnAccount = operator.getJSONObject("psnAccount");
String accountMobile = psnAccount.getString("accountMobile"); String accountMobile = psnAccount.getString("accountMobile");
System.out.println("请求参数signResult:----------->>>>>>"+signResult);
System.out.println("请求参数action:---------->>>>>>"+action);
System.out.println("请求参数signFlowId:---------->>>>>>"+signFlowId);
System.out.println("请求参数accountMobile:---------->>>>>>"+accountMobile);
Example msSealSignRecordExample = new Example(MsSealSignRecord.class); Example msSealSignRecordExample = new Example(MsSealSignRecord.class);
msSealSignRecordExample.createCriteria().andEqualTo("signFlowId", signFlowId); msSealSignRecordExample.createCriteria().andEqualTo("signFlowId", signFlowId);
MsSealSignRecord sealSignRecordsel = sealSignRecordMapper.selectOneByExample(msSealSignRecordExample); MsSealSignRecord sealSignRecordsel = sealSignRecordMapper.selectOneByExample(msSealSignRecordExample);
@@ -31,11 +31,6 @@ public class SignVerifyUtils {
String signOriaData = timestampreq + reqQuerystr + reqbodystr; String signOriaData = timestampreq + reqQuerystr + reqbodystr;
String newDisgSignuter= DigesdateUtils.getSignStr(signOriaData, eSignAppSecret); String newDisgSignuter= DigesdateUtils.getSignStr(signOriaData, eSignAppSecret);
System.out.println("请求参数timestampreq:----------->>>>>>"+timestampreq);
System.out.println("请求参数reqQuerystr:---------->>>>>>"+reqQuerystr);
System.out.println("请求参数reqbodystr:---------->>>>>>"+reqbodystr);
System.out.println("加密出来的签名值:----------->>>>>>"+newDisgSignuter);
System.out.println("header里面的签名值:---------->>>>>>"+orialsignature);
if (StringUtils.equals(orialsignature, newDisgSignuter)) { if (StringUtils.equals(orialsignature, newDisgSignuter)) {
return true; return true;
@@ -59,7 +54,6 @@ public class SignVerifyUtils {
String reqvalue = httprequest.getParameter(reqName); String reqvalue = httprequest.getParameter(reqName);
httpreqQuery += reqvalue == null ? "" : reqvalue; httpreqQuery += reqvalue == null ? "" : reqvalue;
} }
System.out.println("获取请求字符串是:---"+httpreqQuery);
return httpreqQuery; return httpreqQuery;
} }