From b61cfe8b6b5bf2d15ab959a67a965d56994f8e46 Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 6 Sep 2022 19:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E5=95=86=E5=93=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=89=A9=E6=B5=81=E6=A8=A1=E7=89=88=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/lili/modules/goods/serviceimpl/GoodsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsServiceImpl.java b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsServiceImpl.java index b44250b4..65dcfbba 100644 --- a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsServiceImpl.java @@ -574,7 +574,7 @@ public class GoodsServiceImpl extends ServiceImpl implements break; case "VIRTUAL_GOODS": if (!"0".equals(goods.getTemplateId())) { - throw new ServiceException(ResultCode.VIRTUAL_GOODS_NOT_NEED_TEMP); + goods.setTemplateId("0"); } break; default: