虚拟商品设置物流模版问题兼容处理

This commit is contained in:
Chopper 2022-09-06 19:16:26 +08:00
parent 28d57dff72
commit b61cfe8b6b

View File

@ -574,7 +574,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
break;
case "VIRTUAL_GOODS":
if (!"0".equals(goods.getTemplateId())) {
throw new ServiceException(ResultCode.VIRTUAL_GOODS_NOT_NEED_TEMP);
goods.setTemplateId("0");
}
break;
default: