mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-08 03:56:48 +08:00
1.对账下载参数错误问题
This commit is contained in:
@@ -83,7 +83,7 @@ public class ApyAccountRepository {
|
||||
|
||||
ApyAccount apyAccount4 = new ApyAccount();
|
||||
apyAccount4.setPayId(4);
|
||||
apyAccount4.setPartner("777290058110048");
|
||||
apyAccount4.setPartner("700000000000001");
|
||||
//公钥,验签证书链格式: 中级证书路径;根证书路径
|
||||
apyAccount4.setPublicKey("D:/certs/acp_test_middle.cer;D:/certs/acp_test_root.cer");
|
||||
//私钥, 私钥证书格式: 私钥证书路径;私钥证书对应的密码
|
||||
|
||||
@@ -616,9 +616,11 @@ public class UnionPayService extends BasePayService {
|
||||
public <T> T downloadbill (Date billDate, String billType, Callback<T> callback) {
|
||||
Map<String ,Object > params = this.getCommonParam();
|
||||
UnionTransactionType.FILE_TRANSFER.convertMap(params);
|
||||
DateFormat df = new SimpleDateFormat("MMDD");
|
||||
params.put(SDKConstants.param_settleDate,df.format(billDate));
|
||||
DateFormat df = new SimpleDateFormat("MMdd");
|
||||
params.put(SDKConstants.param_settleDate,df);
|
||||
params.put(SDKConstants.param_fileType,billType);
|
||||
params.remove(SDKConstants.param_backUrl);
|
||||
params.remove(SDKConstants.param_currencyCode);
|
||||
this.setSign(params);
|
||||
String responseStr = getHttpRequestTemplate().postForObject(this.getFileTransUrl(),params,String.class);
|
||||
JSONObject response = UriVariables.getParametersToMap(responseStr);
|
||||
|
||||
@@ -53,7 +53,7 @@ public enum UnionTransactionType implements TransactionType{
|
||||
//查询
|
||||
QUERY("00","00","000201",""),
|
||||
//对账文件下载
|
||||
FILE_TRANSFER("00","00","000201","")
|
||||
FILE_TRANSFER("76","01","000000","")
|
||||
;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user