#117 优化签署回调

Слито
qtz слито 2 коммит(ов) из qtz1 в dev 2 лет назад

+ 0
- 8
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsSignSealServiceImpl.java Просмотреть файл

1014
     @Override
1014
     @Override
1015
     @Transactional(rollbackFor = Exception.class)
1015
     @Transactional(rollbackFor = Exception.class)
1016
     public AjaxResult signSeaalCaseApplicaCallback(String reqbodystr) throws EsignDemoException, IOException {
1016
     public AjaxResult signSeaalCaseApplicaCallback(String reqbodystr) throws EsignDemoException, IOException {
1017
-
1018
-        System.out.println("请求参数reqbodystr:----------->>>>>>"+reqbodystr);
1019
-
1020
         JSONObject jsonObjectCallback = JSONObject.parseObject(reqbodystr);
1017
         JSONObject jsonObjectCallback = JSONObject.parseObject(reqbodystr);
1021
         Gson gson = new Gson();
1018
         Gson gson = new Gson();
1022
         if (jsonObjectCallback != null) {
1019
         if (jsonObjectCallback != null) {
1028
             JSONObject psnAccount = operator.getJSONObject("psnAccount");
1025
             JSONObject psnAccount = operator.getJSONObject("psnAccount");
1029
             String accountMobile = psnAccount.getString("accountMobile");
1026
             String accountMobile = psnAccount.getString("accountMobile");
1030
 
1027
 
1031
-            System.out.println("请求参数signResult:----------->>>>>>"+signResult);
1032
-            System.out.println("请求参数action:---------->>>>>>"+action);
1033
-            System.out.println("请求参数signFlowId:---------->>>>>>"+signFlowId);
1034
-            System.out.println("请求参数accountMobile:---------->>>>>>"+accountMobile);
1035
-
1036
             Example msSealSignRecordExample = new Example(MsSealSignRecord.class);
1028
             Example msSealSignRecordExample = new Example(MsSealSignRecord.class);
1037
             msSealSignRecordExample.createCriteria().andEqualTo("signFlowId", signFlowId);
1029
             msSealSignRecordExample.createCriteria().andEqualTo("signFlowId", signFlowId);
1038
             MsSealSignRecord sealSignRecordsel = sealSignRecordMapper.selectOneByExample(msSealSignRecordExample);
1030
             MsSealSignRecord sealSignRecordsel = sealSignRecordMapper.selectOneByExample(msSealSignRecordExample);

+ 0
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignVerifyUtils.java Просмотреть файл

31
         String signOriaData = timestampreq + reqQuerystr + reqbodystr;
31
         String signOriaData = timestampreq + reqQuerystr + reqbodystr;
32
         String newDisgSignuter= DigesdateUtils.getSignStr(signOriaData, eSignAppSecret);
32
         String newDisgSignuter= DigesdateUtils.getSignStr(signOriaData, eSignAppSecret);
33
 
33
 
34
-        System.out.println("请求参数timestampreq:----------->>>>>>"+timestampreq);
35
-        System.out.println("请求参数reqQuerystr:---------->>>>>>"+reqQuerystr);
36
-        System.out.println("请求参数reqbodystr:---------->>>>>>"+reqbodystr);
37
-        System.out.println("加密出来的签名值:----------->>>>>>"+newDisgSignuter);
38
-        System.out.println("header里面的签名值:---------->>>>>>"+orialsignature);
39
 
34
 
40
         if (StringUtils.equals(orialsignature, newDisgSignuter)) {
35
         if (StringUtils.equals(orialsignature, newDisgSignuter)) {
41
             return true;
36
             return true;
59
             String reqvalue = httprequest.getParameter(reqName);
54
             String reqvalue = httprequest.getParameter(reqName);
60
             httpreqQuery += reqvalue == null ? "" : reqvalue;
55
             httpreqQuery += reqvalue == null ? "" : reqvalue;
61
         }
56
         }
62
-        System.out.println("获取请求字符串是:---"+httpreqQuery);
63
         return  httpreqQuery;
57
         return  httpreqQuery;
64
     }
58
     }
65
 
59