!908 解决查看未上架的商品时,报错缺少商品名称问题

Merge pull request !908 from 杨宇庆/N/A
This commit is contained in:
芋道源码 2024-03-28 10:55:59 +00:00 committed by Gitee
commit 6c12e68a0a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -101,7 +101,7 @@ public class AppProductSpuController {
throw exception(SPU_NOT_EXISTS);
}
if (!ProductSpuStatusEnum.isEnable(spu.getStatus())) {
throw exception(SPU_NOT_ENABLE);
throw exception(SPU_NOT_ENABLE, spu.getName());
}
// 获得商品 SKU
List<ProductSkuDO> skus = productSkuService.getSkuListBySpuId(spu.getId());