|
@@ -55,6 +55,7 @@ public class ESignServiceImpl implements IESignService {
|
|
|
private static final String REDIRECT_URL = "";
|
|
|
private static final String NAME_MAIN_ORGANIZATION = "中数未来(海南)系统集成有限公司";
|
|
|
private static final String MAIN_CARD_NUM = "91460105MAA9A6L75X";
|
|
|
+ private static final String REMOTE_URL = "http://127.0.0.1:8080/jeecg-boot/sys/common/static/";
|
|
|
private static final String[] PERSON_AUTH_MODES = {"PSN_MOBILE3"};
|
|
|
private static final String[] WILLINGNESS_MODES = {"CODE_SMS"};
|
|
|
private static final String[] ORG_AUTH_MODES = {"ORG_ALIPAY_CREDIT", "ORG_LEGALREP"};
|
|
@@ -116,7 +117,7 @@ public class ESignServiceImpl implements IESignService {
|
|
|
@Override
|
|
|
public boolean uploadContractTemplate(AppContractInfoDTO appContractInfoDTO) throws EsignDemoException {
|
|
|
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
- String remoteUrl = "http://127.0.0.1:8080/jeecg-boot/sys/common/static/" + appContractInfoDTO.getFilePath();
|
|
|
+ String remoteUrl = REMOTE_URL + appContractInfoDTO.getFilePath();
|
|
|
String fileType = getFileExtension(appContractInfoDTO.getFilePath());
|
|
|
if (fileType.isEmpty()) {
|
|
|
throw new JeecgBootException("未指定文件类型");
|
|
@@ -323,7 +324,6 @@ public class ESignServiceImpl implements IESignService {
|
|
|
positionGroup.getCustomer().forEach(position -> {
|
|
|
signer1.add("signFields", buildSignFields(contractInfo.getFileId(), position.getX(), position.getY(), 100, 0, 0,false,""));
|
|
|
});
|
|
|
-// signer1.add("signFields", buildSignFields(contractInfo.getFileId(), 100, 200, 96, 100, 100,false,""));
|
|
|
// 企业签署人
|
|
|
JsonObject signer2 = new JsonObject();
|
|
|
signer2.addProperty("signerType", 1);
|
|
@@ -336,8 +336,6 @@ public class ESignServiceImpl implements IESignService {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
});
|
|
|
-// signer2.add("signFields", buildSignFields(contractInfo.getFileId(), 300, 200, 159, 300, 100,true,orgAuthorizedSeal(orgId)));
|
|
|
-
|
|
|
signers.add(signer1);
|
|
|
signers.add(signer2);
|
|
|
return signers;
|