mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-10 07:30:48 +08:00
1.对账下载参数错误问题
This commit is contained in:
@@ -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