运营端充值
This commit is contained in:
@@ -74,16 +74,15 @@ public class DistributionPayServiceImpl implements DistributionPayService {
|
|||||||
orderPaymentService.save(orderPayment);
|
orderPaymentService.save(orderPayment);
|
||||||
|
|
||||||
InitInfo initInfo = new InitInfo().setConfig(detail);
|
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);
|
UserInfo userInfo = userInfoService.getById(userId);
|
||||||
initInfo.setPayment(orderPayment).setShopUser(shopUserInfo)
|
initInfo.setPayment(orderPayment).setShopUser(shopUserInfo)
|
||||||
.setOpenId("aliPay".equals(payParam.getPayType()) ? userInfo.getAlipayOpenId() : userInfo.getWechatOpenId());
|
.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;
|
return initInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user