订单支付修改

This commit is contained in:
张松 2025-09-27 21:03:48 +08:00
parent 2fa2ea6ea3
commit 9b04cca3d7
1 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,8 @@ public class PayServiceImpl implements PayService {
AssertUtil.isNull(shopUser, "支付失败 该店铺用户不存在");
AssertUtil.isBlank(payParam.getOpenId(), "用户小程序ID不能为空");
AssertUtil.isBlank(payParam.getPayType(), "支付方式不能为空");
UserInfo userInfo = userInfoService.getById(shopUser.getUserId());
//查询活动Id 获取金额字段
MkShopRecharge recharge = shopRechargeService.getById(payParam.getRechargeId());
AssertUtil.isNull(recharge, "充值配置不存在");
@ -281,7 +283,7 @@ public class PayServiceImpl implements PayService {
"", rechargeDetail.getAmount(), payParam.getRechargeId()));
upOrderPayInfo(orderInfo.getId(), PayEnums.VIP_PAY, paymentId);
return ltPay(payParam.getShopId(), payParam.getPayType(), new CzgLtPayReq(payOrderNo, rechargeDetail.getAmount().multiply(MONEY_RATE).longValue(),
payParam.getPayType(), "充值并支付", payParam.getOpenId(), clintIp, payParam.getReturnUrl(), payParam.getBuyerRemark(), ""));
payParam.getPayType(), "充值并支付", "wechatPay".equals(payParam.getPayType()) ? userInfo.getWechatOpenId() : userInfo.getAlipayOpenId(), clintIp, payParam.getReturnUrl(), payParam.getBuyerRemark(), ""));
}
@Override