bugfix:同步 master 修改的 bug

This commit is contained in:
YunaiV
2024-03-28 19:05:16 +08:00
parent 907f3a58ba
commit a80ba48889
5 changed files with 13 additions and 16 deletions

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());