From 7a3a4f8012a72f80d8dd62064a76655c803da864 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 29 五月 2024 12:42:45 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/baifenbaishop

---
 CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs
index 3841395..b8fb661 100644
--- a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs
+++ b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs
@@ -552,6 +552,9 @@
                 if (product == null) return null;
 
                 good.skuList = await GetCoreCmsProductsView(good, products, userId, isPromotion, type, groupId);
+                var coutiscut = products.Where(x => x.isCustomizable == true).Count();
+                if (coutiscut > 0)
+                    good.isCustomizable = true;
             }
             else
             {
@@ -836,6 +839,7 @@
                     item.distributionCutMoney = o.distributionCutMoney;
                     item.mktPrice = o.mktprice;
                     item.selPrice = o.price;
+                    item.isCustomizable = o.isCustomizable;
                     if (type == GlobalEnumVars.OrderType.PinTuan.ToString().ToLowerInvariant())
                     {
                         if (isMaxPinTuanGoodsNums)
@@ -892,6 +896,7 @@
                     item.distributionCutMoney = o.distributionCutMoney;
                     item.mktPrice = o.mktprice;
                     item.selPrice = o.price;
+                    item.isCustomizable = o.isCustomizable;
                     if (type == GlobalEnumVars.OrderType.PinTuan.ToString().ToLowerInvariant())
                     {
                         if (isMaxPinTuanGoodsNums)

--
Gitblit v1.9.1