Showing
1 changed file
with
8 additions
and
1 deletions
@@ -179,7 +179,7 @@ public abstract class AlipayServiceAbstract extends AbstractPayService { | @@ -179,7 +179,7 @@ public abstract class AlipayServiceAbstract extends AbstractPayService { | ||
179 | public Map<String, String> transferMoneyWhenExceedMillion(String transferOrderCode, String businessId, String alipayUid, String alipayAccount, String userName, BigDecimal transferAmount) throws Exception{ | 179 | public Map<String, String> transferMoneyWhenExceedMillion(String transferOrderCode, String businessId, String alipayUid, String alipayAccount, String userName, BigDecimal transferAmount) throws Exception{ |
180 | 180 | ||
181 | Map<String, String> queryParams = buildTransferParamsWhenExceedMillion(transferOrderCode, businessId, alipayUid, alipayAccount, userName, transferAmount); | 181 | Map<String, String> queryParams = buildTransferParamsWhenExceedMillion(transferOrderCode, businessId, alipayUid, alipayAccount, userName, transferAmount); |
182 | - String respTxt = sendOpenApiRequestWithException(transferOrderCode, queryParams); | 182 | + String respTxt = sendMApiRequestWithException(transferOrderCode, queryParams); |
183 | 183 | ||
184 | Map<String, String> result; | 184 | Map<String, String> result; |
185 | 185 | ||
@@ -236,6 +236,13 @@ public abstract class AlipayServiceAbstract extends AbstractPayService { | @@ -236,6 +236,13 @@ public abstract class AlipayServiceAbstract extends AbstractPayService { | ||
236 | return response; | 236 | return response; |
237 | } | 237 | } |
238 | 238 | ||
239 | + private String sendMApiRequestWithException(String orderCode, Map<String, String> paramMap) throws Exception { | ||
240 | + logger.info("[{}] send openapi request: {}", orderCode, paramMap); | ||
241 | + String response = httpClient.postFormData(AlipayConfig.MAPI_URL, paramMap); | ||
242 | + logger.info("[{}] trade openapi resp: {}", orderCode, response); | ||
243 | + return response; | ||
244 | + } | ||
245 | + | ||
239 | 246 | ||
240 | private PayQueryBo queryOpenApiConvert(String orderCode, String respText) { | 247 | private PayQueryBo queryOpenApiConvert(String orderCode, String respText) { |
241 | PayQueryBo queryBo = new PayQueryBo(); | 248 | PayQueryBo queryBo = new PayQueryBo(); |
-
Please register or login to post a comment