point bug
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user