|
@@ -208,8 +208,13 @@ public class WebsitContractSignLogic {
|
|
|
String generateContractId = IdWorker.getIdStr();
|
|
|
String generateTransactionId = IdWorker.getIdStr();
|
|
|
String fddParams = this.getContractParams(websit, websitFile.getId());
|
|
|
- Auth4FDDUtil.generateContract(websitFile.getFadadaTemplateId(), generateContractId,
|
|
|
- websitFile.getContractName(), null, null, fddParams);
|
|
|
+ if (StringUtils.isNotBlank(fddParams)) {
|
|
|
+ Auth4FDDUtil.generateContract(websitFile.getFadadaTemplateId(), generateContractId,
|
|
|
+ websitFile.getContractName(), null, null, fddParams);
|
|
|
+ } else {
|
|
|
+ Auth4FDDUtil.uploadContract(generateContractId, websitFile.getContractName(),
|
|
|
+ null, websitFile.getContractTemplatePdf());
|
|
|
+ }
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.set("contractId", generateContractId);
|
|
@@ -312,6 +317,11 @@ public class WebsitContractSignLogic {
|
|
|
if (websit.getFadadaWebsitRealStatus().equals(IsYesNoEnum.YES.getKey())) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (StringUtils.isNotBlank(websit.getFadadaWebsitAuthUrl())) {
|
|
|
+ bean.setJump(true);
|
|
|
+ bean.setUrl(websit.getFadadaWebsitAuthUrl());
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
CompanyInfo company = new CompanyInfo();
|
|
|
company.setCompanyName(websit.getName());
|
|
@@ -378,6 +388,11 @@ public class WebsitContractSignLogic {
|
|
|
if (websit.getFadadaCustomerRealStatus().equals(IsYesNoEnum.YES.getKey())) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (StringUtils.isNotBlank(websit.getFadadaCustomerAuthUrl())) {
|
|
|
+ bean.setJump(true);
|
|
|
+ bean.setUrl(websit.getFadadaCustomerAuthUrl());
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
JSONObject personResultJson = Auth4FDDUtil.getAuthPersonUrl(websit.getFadadaCustomerId(), this.fddAuthPageModify, this.fddAuthVerifiedWay,
|