运营端充值

This commit is contained in:
张松
2025-10-27 14:12:49 +08:00
parent 22ab03ea51
commit 249c6b4a6e
7 changed files with 41 additions and 8 deletions

View File

@@ -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;
}