|
|
|
@@ -136,6 +136,7 @@ public class WxPayOrderController extends BaseController { |
|
|
|
if (null == payOrder) { |
|
|
|
return new ResultData(ErrorCode.PAY_ORDER_ERROR, "未查询到payOrder."); |
|
|
|
} |
|
|
|
logger.info(">>>>>>updatePayOrder cur status :"+payOrder.getPayOrderStatus()); |
|
|
|
if (payOrder.getPayOrderStatus().equals(EnumPayStatus.PAY_STATUS_SUCCESS.getCode())) { |
|
|
|
order = wxOrderService.getById(orderId); |
|
|
|
return new ResultData(Result.SUCCESS, "支付状态更新成功", order); |
|
|
|
@@ -149,6 +150,7 @@ public class WxPayOrderController extends BaseController { |
|
|
|
WxPayAccount payAccount = wxPayAccountService.getById(appInfo.getPayId()); |
|
|
|
WxPayOrder wo = wxPayOrderService.handleWxOrderQuery(payOrder, order, appInfo, payAccount, IdWorker.get()); |
|
|
|
if (null != wo) { |
|
|
|
logger.info(">>>>>>updatePayOrder handleWxOrderQuery result :"+wo.toString()); |
|
|
|
return new ResultData(Result.SUCCESS, "支付状态更新成功"); |
|
|
|
} |
|
|
|
return new ResultData(ErrorCode.PAY_ORDER_ERROR, "查询微信订单支付状态失败,请稍后!"); |
|
|
|
|