运营端充值
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.czg.service.order.service.impl;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.czg.account.entity.ShopInfo;
|
||||
import com.czg.account.entity.ShopUser;
|
||||
import com.czg.account.entity.UserInfo;
|
||||
@@ -82,6 +83,11 @@ public class DistributionPayServiceImpl implements DistributionPayService {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user