rentaiming
2024-06-06 bfde6acbf95e55846239cb2c7a0fe48dea287f69
ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/service/impl/PromotionWishListServiceImpl.java
@@ -44,18 +44,8 @@
        promotionWishList.setExpectedPrice(promotionWishListDTO.getExpectedPrice());
        promotionWishList.setGoodsName(promotionWishListDTO.getGoodsName());
        promotionWishList.setRemark(promotionWishListDTO.getRemark());
        List<String> urlList=new ArrayList<>();
        if (promotionWishListDTO.getGoodsImageUrl().length>0){
            for (MultipartFile file:promotionWishListDTO.getGoodsImageUrl()){
                try {
                    String url= HuaWeiOBSUtil.obsUpload(file);
                    urlList.add(url);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            promotionWishList.setGoodsImageUrl(urlList.toString());
        }
        promotionWishList.setGoodsImageUrl(promotionWishListDTO.getGoodsImageUrl());
        promotionWishList.setMemberId(promotionWishListDTO.getMemberId());
        this.save(promotionWishList);
    }