Commit 74071111 by fanjiaxin

商品列表检索为空,返回参处理

parent 9eb29041
Pipeline #71672 passed with stages
in 58 seconds
......@@ -60,6 +60,8 @@ public class ProductServiceImpl implements IProductService {
List<ProductListVO> productList = new ArrayList<>(0);
// 商品列表
if (!CollectionUtils.isEmpty(productListVO.getProduct_list())) {
// 获取用户信息
LoginUserInfo loginUserInfo = LoginUserContextHolder.get();
// 使用异步多线程处理
productList = AsyncUtils.processListAsync(productListVO.getProduct_list(), item -> {
WeChatPromoteProductDetailVO detailVO = getProductDetailCache(item.getShop_appid(), item.getProduct_id());
......@@ -88,8 +90,6 @@ public class ProductServiceImpl implements IProductService {
// 推客分佣比例
BigDecimal commissionRatio = drmSharerConfig.getDefaultCommissionRatio();
log.info("默认商品佣金比例:{}", commissionRatio);
// 获取用户信息
LoginUserInfo loginUserInfo = LoginUserContextHolder.get();
if (null != loginUserInfo && StringUtils.isNotBlank(loginUserInfo.getOpenId())) {
WeChatSharerListVO sharerListVO = weChatShopSharerListRequest.handle(loginUserInfo.getOpenId(), "", 1);
if (null != sharerListVO && !CollectionUtils.isEmpty(sharerListVO.getSharer_info_list())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment