buyer-api/src/main/java/cn/lili/controller/order/AfterSaleBuyerController.java
@@ -64,6 +64,10 @@ @GetMapping(value = "/get/{sn}") public ResultMessage<AfterSaleVO> get(@NotNull(message = "售后单号") @PathVariable("sn") String sn) { AfterSaleVO afterSale = OperationalJudgment.judgment(afterSaleService.getAfterSale(sn)); String goodsImage = afterSale.getGoodsImage(); if (StringUtils.isNotBlank(goodsImage)&&!goodsImage.contains("http")) { afterSale.setGoodsImage(cosUtil.getPreviewUrl(goodsImage)); } return ResultUtil.data(afterSale); } framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
@@ -236,6 +236,12 @@ if (!sku.containsKey("quantity") || StringUtil.isEmpty(sku.get("quantity").toString()) || Convert.toInt(sku.get("quantity").toString()) < 0) { throw new ServiceException(ResultCode.GOODS_SKU_QUANTITY_ERROR); } //没有优惠卷的商品需要移除优惠卷信息 Object couponId = sku.get("couponId"); if (couponId == null || StringUtil.isEmpty(couponId.toString())) { sku.remove("couponId"); sku.remove("couponName"); } sku.values().forEach(i -> { if (CharSequenceUtil.isBlank(i.toString())) { throw new ServiceException(ResultCode.MUST_HAVE_GOODS_SKU_VALUE);