|
@@ -311,7 +311,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
String responseBody = response.body().string();
|
|
|
JSONObject jsonResponse = JSON.parseObject(responseBody);
|
|
|
String payHref = jsonResponse.getJSONObject("data").getString("payHref");
|
|
|
- order.setThirdOrderNo(jsonResponse.getJSONObject("data").getString("id"));
|
|
|
+ order.setThirdTradeNo(jsonResponse.getJSONObject("data").getString("id"));
|
|
|
order.setPagePayUrl(payHref);
|
|
|
this.baseMapper.insert(order);
|
|
|
// 订单关闭
|
|
@@ -470,7 +470,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
String responseBody = response.body().string();
|
|
|
JSONObject jsonResponse = JSON.parseObject(responseBody);
|
|
|
String payHref = jsonResponse.getJSONObject("data").getString("payHref");
|
|
|
- order.setThirdOrderNo(jsonResponse.getJSONObject("data").getString("id"));
|
|
|
+ order.setThirdTradeNo(jsonResponse.getJSONObject("data").getString("id"));
|
|
|
order.setPagePayUrl(payHref);
|
|
|
this.baseMapper.insert(order);
|
|
|
// 订单关闭
|
|
@@ -652,7 +652,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
.readTimeout(300, TimeUnit.SECONDS)
|
|
|
.writeTimeout(300, TimeUnit.SECONDS)
|
|
|
.build();
|
|
|
- String url = payCenterConfigProperties.getPayCenterUrl() + payCenterConfigProperties.getCapturePaypalMethod() + "?tradeId=" + order.getThirdOrderNo();
|
|
|
+ String url = payCenterConfigProperties.getPayCenterUrl() + payCenterConfigProperties.getCapturePaypalMethod() + "?tradeId=" + order.getThirdTradeNo();
|
|
|
Request request = new Request.Builder()
|
|
|
.url(url)
|
|
|
.method("GET", null)
|
|
@@ -824,8 +824,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<OrdersVO> getOrderListByThirdOrderNo(String thirdOrderNo) {
|
|
|
- return this.baseMapper.selectOrdersByThirdOrderNo(thirdOrderNo);
|
|
|
+ public List<OrdersVO> getOrderListByThirdTradeNo(String thirdTradeNo) {
|
|
|
+ return this.baseMapper.selectOrdersByThirdOrderNo(thirdTradeNo);
|
|
|
}
|
|
|
|
|
|
@Override
|