point bug

This commit is contained in:
wangjinlei
2023-10-18 10:12:30 +08:00
parent ff1e833d5f
commit 59f46eb2aa
5 changed files with 38 additions and 4 deletions

View File

@@ -58,6 +58,11 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
log.info("请求参数:{}", paramMap);
JSONObject responseJson = wxPayUtil.doPostWexinV3(wechatPayConfig.getPayUrl(), json.toJSONString());
String prepayId = responseJson.getString("prepay_id");
payWechatOrderService.add(paymentInfo.getOrderSn(), prepayId);
if(paymentInfo.getBuyOrderId()==null){
payWechatOrderService.add(paymentInfo.getOrderSn(), prepayId);
}else {
payWechatOrderService.addForPoint(paymentInfo.getOrderSn(), prepayId,paymentInfo.getBuyOrderId());
}
}
}