|
@@ -145,11 +145,13 @@ public class AliPayService {
|
|
|
request.setBizModel(queryModel);
|
|
|
String result = null;
|
|
|
try {
|
|
|
+ logger.debug("支付宝查询: 发起请求: {}", paynum);
|
|
|
result = alipayClient.execute(request).getBody();
|
|
|
- } catch (AlipayApiException e) {
|
|
|
- logger.error("请求支付宝查询接口异常: ", e);
|
|
|
+ logger.debug("支付宝查询: 接口返回: {}", result);
|
|
|
+ } catch (AlipayApiException exception) {
|
|
|
+ logger.error("请求支付宝查询接口异常: ", exception);
|
|
|
+ return false;
|
|
|
}
|
|
|
- logger.debug("请求支付宝查询接口返回: {}", result);
|
|
|
// {"alipay_trade_query_response":{"code":"10000","msg":"Success","buyer_logon_id":"ipb***@sandbox.com","buyer_pay_amount":"0.00","buyer_user_id":"2088102170394382","buyer_user_type":"PRIVATE","invoice_amount":"0.00","out_trade_no":"1529637131201603","point_amount":"0.00","receipt_amount":"0.00","send_pay_date":"2018-06-22 11:12:23","total_amount":"12.00","trade_no":"2018062221001004380200826678","trade_status":"TRADE_SUCCESS"},"sign":"gnWtxKDDhkRmoWnfwLVs2RGtt4GbiY+xaVs5+G47D5e9SnQHqGnElKme4jlDdnqhAroX3aqyJLVexohBjzA+DlpRzDhIu5EZLXnDr/B2FZEVjyiU66ImVH6vSyWyOVEjbGIgmVhUslhXqXYK5KxAx3QAdLrJLQeMO/gUdjs0qWcGO9yTU/suDy0YcdLSLlFyUutwD2MBz4Ri0tBk+uHjpxXoTZeb9/lQ7e4BixwCy+wB3hcESWN1b/m77YLKztmbLy67auhxzP9TRwQQ+6WRrTdMe/9rouIt6AW9T+6XSFd/LwL73Qo+1MfQa+iEUx2Iq+AYekhSgVyLJMRgz/qoZA=="}
|
|
|
Map<String, Object> resultMap = JsonUtil.toObject(result, Map.class, String.class, Object.class);
|
|
|
Map<String, String> map = (Map<String, String>) resultMap.get("alipay_trade_query_response");
|