Kaynağa Gözat

e签宝逻辑优化

zhangchenm 6 gün önce
ebeveyn
işleme
853b73b7ef

+ 1 - 1
trade-service/src/main/java/com/trade/service/contract/service/impl/ESignContractServiceImpl.java

@@ -77,6 +77,7 @@ public class ESignContractServiceImpl implements SignPlatformService, SignAccoun
     @Transactional
     public ContractSignOutput signContract(ContractSignInput signInput) {
         log.info("进入E签宝合同签署流程,业务场景:{},签署失效时长:{}hour", signInput.getBizScene(), signInput.getSignValidTime());
+        ESignTokenHelper.getTokenData();
         ContractSignOutput output = new ContractSignOutput();
         // 获取e签宝账号信息: 先统一创建账号,有任意创建失败则fail fast
         Map<String, String> accountMap = getAccountMap(signInput.getSigneInfoList());
@@ -255,7 +256,6 @@ public class ESignContractServiceImpl implements SignPlatformService, SignAccoun
         boolean autoArchive = null == signInput.getAutoArchive() || signInput.getAutoArchive();// 是否自动归档, 默认true
         ESignContractProcess process = new ESignContractProcess(autoArchive, signInput.getBizScene(), null, null,
                 signValidityDate.toInstant(ZoneOffset.of("+8")).toEpochMilli(), null, null, configInfo);
-        ESignTokenHelper.getTokenData();
         String flowId = ESignRequest.creatESignFlow(process);
         ESignFlow esignFlow = ESignFlow.builder().bizSysId(signInput.getBizSysId()).flowId(flowId)
                 .scene(signInput.getBizScene()).expiredTime(signValidityDate).bizType(signInput.getBizType())