Răsfoiți Sursa

fix(app): 增加电子签名服务中的异常处理

- 在 extractSignFlowId 方法中添加了对错误代码 1437328 的处理
- 当遇到此错误代码时,抛出包含具体信息的 JeecgBootException 异常
- 这个异常处理针对签署人信息与已有个人信息不一致的情况
SheepHy 3 săptămâni în urmă
părinte
comite
497abbee93

+ 1 - 0
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/app/service/impl/ESignServiceImpl.java

@@ -418,6 +418,7 @@ public class ESignServiceImpl implements IESignService {
     private String extractSignFlowId(EsignHttpResponse response) {
         JSONObject result = JSONObject.parseObject(response.getBody());
         if (result.getString("code").equals("1435002")) throw new JeecgBootException("该使用人未授权");
+        if (result.getString("code").equals("1437328")) throw new JeecgBootException("该签署人账号:15120118404对应用户已存在个人信息,传入的指定签署人信息与已有个人信息不一致,请先确认信息是否准确:姓名张涛,大陆身份证522129200105265514");
         return result.getJSONObject("data").getString("signFlowId");
     }