...
|
...
|
@@ -83,18 +83,20 @@ public abstract class AlipayServiceAbstract extends AbstractPayService { |
|
|
// 查询结果转换成 共通的对象
|
|
|
PayQueryBo payQueryBo = new PayQueryBo();
|
|
|
|
|
|
payQueryBo.setOrderCode(queryBo.getOut_trade_no());
|
|
|
payQueryBo.setTradeNo(queryBo.getTrade_no());
|
|
|
if ("10000".equals(queryBo.getCode())){
|
|
|
payQueryBo.setOrderCode(queryBo.getOut_trade_no());
|
|
|
payQueryBo.setTradeNo(queryBo.getTrade_no());
|
|
|
|
|
|
if ("TRADE_SUCCESS".equals(queryBo.getTrade_status())) {
|
|
|
payQueryBo.setPayStatus(true);
|
|
|
if ("TRADE_SUCCESS".equals(queryBo.getTrade_status())) {
|
|
|
payQueryBo.setPayStatus(true);
|
|
|
|
|
|
}else if("TRADE_CLOSED".equals(queryBo.getTrade_status())){
|
|
|
payQueryBo.setRefundStatus(true);
|
|
|
}
|
|
|
}else if("TRADE_CLOSED".equals(queryBo.getTrade_status())){
|
|
|
payQueryBo.setRefundStatus(true);
|
|
|
}
|
|
|
|
|
|
payQueryBo.setAmount(Double.parseDouble(queryBo.getTotal_amount()));
|
|
|
payQueryBo.setBuyerId(queryBo.getBuyer_user_id());
|
|
|
payQueryBo.setAmount(Double.parseDouble(queryBo.getTotal_amount()));
|
|
|
payQueryBo.setBuyerId(queryBo.getBuyer_user_id());
|
|
|
}
|
|
|
|
|
|
return payQueryBo;
|
|
|
}
|
...
|
...
|
|