From 769f543cc5d38460d451f2447b78b9c96aa911d9 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Wed, 8 Dec 2021 00:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9B=A2=E8=B4=AD=E3=80=81=E7=A7=92=E6=9D=80=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E4=B8=80=E4=B8=AA=E5=AD=97=E7=AC=A6=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=88=97=E8=A1=A8=E8=8E=B7=E5=8F=96=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs | 4 ++-- CoreCms.Net.Services/Good/CoreCmsProductsServices.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs index 31f0e4e..5e3dac3 100644 --- a/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs +++ b/CoreCms.Net.Services/Good/CoreCmsGoodsServices.cs @@ -452,10 +452,10 @@ namespace CoreCms.Net.Services if (string.IsNullOrEmpty(promotions.parameters)) return false; var obj = JsonConvert.DeserializeAnonymousType(promotions.parameters, new { - goodId = "", + goodsId = "", num = 0, }); - if (obj.goodId.ObjectToInt(0) != goodId) return false; + if (obj.goodsId.ObjectToInt(0) != goodId) return false; promotionsModel = promotions; return true; } diff --git a/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs b/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs index 62ed692..e54880f 100644 --- a/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs +++ b/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs @@ -276,7 +276,7 @@ namespace CoreCms.Net.Services } else if (type == "group" || type == "skill") { - if (!goodsServices.IsInGroup(productModel.goodsId, out var groupModel)) + if (!goodsServices.IsInGroup(productModel.goodsId, out var groupModel, groupId)) { return null; }