运营端充值
This commit is contained in:
parent
26ef4f20e7
commit
cb5f006c22
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue