运营端充值

This commit is contained in:
张松 2025-10-30 09:44:32 +08:00
parent 26ef4f20e7
commit cb5f006c22
1 changed files with 5 additions and 6 deletions

View File

@ -74,16 +74,15 @@ public class DistributionPayServiceImpl implements DistributionPayService {
orderPaymentService.save(orderPayment);
InitInfo initInfo = new InitInfo().setConfig(detail);
if (!isRecharge) {
if (isRecharge) {
String openId = wxService.getOpenId(payParam.getCode());
initInfo.setOpenId(openId);
initInfo.setPayment(orderPayment);
} else {
UserInfo userInfo = userInfoService.getById(userId);
initInfo.setPayment(orderPayment).setShopUser(shopUserInfo)
.setOpenId("aliPay".equals(payParam.getPayType()) ? userInfo.getAlipayOpenId() : userInfo.getWechatOpenId());
}
if (StrUtil.isNotBlank(payParam.getCode())) {
String openId = wxService.getOpenId(payParam.getCode());
initInfo.setOpenId(openId);
}
return initInfo;
}