|
|
|
@ -442,7 +442,7 @@ public class SaasMerService { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "未找到平台商户号"); |
|
|
|
|
} |
|
|
|
|
Map<String,Object> param = new HashMap<>(); |
|
|
|
|
param.put("productCode", "WECHAT_PAY"); |
|
|
|
|
param.put("productCode", "PAPER_CODE"); |
|
|
|
|
param.put("settlementType", "AUTOMATIC"); |
|
|
|
|
// 商户费率
|
|
|
|
|
List<Map<String, Object>> feesMapList = new ArrayList<>(); |
|
|
|
@ -452,6 +452,9 @@ public class SaasMerService { |
|
|
|
|
feesMap = new HashMap<>(); |
|
|
|
|
feesMap.put("fee", rate.getRatePct()); |
|
|
|
|
feesMap.put("feeType", rate.getRateSaasTypeCode()); |
|
|
|
|
if (StringUtils.isNotBlank(rate.getExt1())) { |
|
|
|
|
feesMap.put("topFee", rate.getExt1()); |
|
|
|
|
} |
|
|
|
|
feesMapList.add(feesMap); |
|
|
|
|
} |
|
|
|
|
param.put("fees", feesMapList); |
|
|
|
@ -483,12 +486,12 @@ public class SaasMerService { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "未找到平台商户号"); |
|
|
|
|
} |
|
|
|
|
Map<String,Object> param = new HashMap<>(); |
|
|
|
|
// param.put("productCode", "WECHAT_PAY");
|
|
|
|
|
param.put("productCode", "WECHAT_PAY"); |
|
|
|
|
|
|
|
|
|
Map<String,Object> header = new HashMap<>(); |
|
|
|
|
header.put("Authorization", "bearer " + saasCommon.getUpdateToken()); |
|
|
|
|
|
|
|
|
|
String doSaasGet = HttpsUtils.doSaasGet(SaasConfig.requestMerUrl + "channel/customer/update/fee/" + merPlatformNo.getPlatformNo(), param, header, false); |
|
|
|
|
String doSaasGet = HttpsUtils.doSaasGet(SaasConfig.requestMerUrl + "channel/customer/update/fee/" + merPlatformNo.getPlatformNo(), param, header, true); |
|
|
|
|
JSONObject responseObj = JSONObject.parseObject(doSaasGet); |
|
|
|
|
System.out.println("商户号:" + merPlatformNo.getPlatformNo() + " " + merPlatformNo.getCupNo()); |
|
|
|
|
System.out.println("body:" + JSONObject.toJSONString(param)); |
|
|
|
|