From 1a7a278e32123023fa43bdaa274da778c27b80a0 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 06 十一月 2025 16:34:48 +0800
Subject: [PATCH] 除了视频外需要校验用户是否自己点击了自己的分享

---
 framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java b/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
index c934cdc..72a1f33 100644
--- a/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
+++ b/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
@@ -252,6 +252,13 @@
                 sku.remove("couponId");
                 sku.remove("couponName");
             }
+            Object templateId = sku.get("customizeTemplateId");
+            if (templateId == null || StringUtil.isEmpty(templateId.toString())) {
+                sku.remove("customizeTemplateId");
+                sku.remove("customizeTemplateName");
+            }
+
+
             sku.values().forEach(i -> {
                 if (CharSequenceUtil.isBlank(i.toString())) {
                     throw new ServiceException(ResultCode.MUST_HAVE_GOODS_SKU_VALUE);

--
Gitblit v1.8.0