当面付进件修改1

This commit is contained in:
gong
2026-01-09 10:51:31 +08:00
parent 6180cc6801
commit db3c635197
4 changed files with 18 additions and 6 deletions

View File

@@ -101,6 +101,7 @@ public class EntryManager {
entryRespDto.setAlipayOrderId(respDto.getEntryId());
entryRespDto.setAlipayStatus(respDto.getStatus());
entryRespDto.setAlipayErrorMsg(respDto.getErrorMsg());
entryRespDto.setAlipayAuthInfo(respDto.getAlipayAuthInfo());
}
}
return entryRespDto;

View File

@@ -33,6 +33,11 @@ public class EntryRespDto {
*/
private String alipayOrderId;
/**
* 支付宝授信息
*/
private String alipayAuthInfo;
/**
* 支付宝状态
* {@link com.czg.PayCst.EntryStatus}

View File

@@ -16,6 +16,11 @@ public class EntryThirdRespDto {
*/
private String entryId;
/**
* 支付宝授信息
*/
private String alipayAuthInfo;
/**
* 平台
*/

View File

@@ -103,6 +103,7 @@ public class AlipayIsvEntryManager {
.setPlatform(PayCst.Platform.ALIPAY);
try {
String batchNo = createRequest(reqDto);
respDto.setEntryId(batchNo);
AlipayOpenAgentFacetofaceSignModel signModel = buildFaceToFaceModel(reqDto, batchNo);
File businessLicensePic = UploadFileUtil.getFileByUrl(reqDto.getBusinessLicenceInfo().getLicensePic().getUrl());
@@ -115,8 +116,8 @@ public class AlipayIsvEntryManager {
log.info("支付宝开启代商户签约: 响应={}", JSONObject.toJSONString(response));
try {
String orderNo = confirmRequest(batchNo);
respDto.setEntryId(orderNo);
String authInfo = confirmRequest(batchNo);
respDto.setAlipayAuthInfo(authInfo);
respDto.setStatus(PayCst.EntryStatus.INIT);
respDto.setErrorMsg("");
return respDto;
@@ -180,15 +181,15 @@ public class AlipayIsvEntryManager {
public static String confirmRequest(String batchNo) {
AlipayClient.setApiClient(null);
// 构造请求参数以调用接口
AlipayOpenAgentCommonsignApi api = new AlipayOpenAgentCommonsignApi();
AlipayOpenAgentCommonsignConfirmModel data = new AlipayOpenAgentCommonsignConfirmModel();
AlipayOpenAgentApi api = new AlipayOpenAgentApi();
AlipayOpenAgentConfirmModel data = new AlipayOpenAgentConfirmModel();
// 设置ISV 代商户操作事务编号
data.setBatchNo(batchNo);
try {
AlipayOpenAgentCommonsignConfirmResponseModel response = api.confirm(data);
AlipayOpenAgentConfirmResponseModel response = api.confirm(data);
log.info("支付宝开启代商户签约,确认事务: 响应={}", response);
return response.getOrderNo();
return JSONObject.toJSONString(response);
} catch (ApiException e) {
String body = e.getResponseBody();
log.error("支付宝开启代商户签约,确认事务异常: {}", body);