From 5736f5a818defda95b41b702c13d32b2789b6242 Mon Sep 17 00:00:00 2001 From: jianweie code Date: Fri, 10 Nov 2023 17:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=8E=B7=E5=8F=96=E5=8F=82=E6=95=B0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E4=B8=AD=EF=BC=8C=E5=B0=86first=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BAfind=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=81=B6=E5=8F=91=E6=80=A7=E7=9A=84Linq=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=A4=B1=E6=95=88=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.Web.WebApi/Controllers/GoodController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs b/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs index 7ec11e0c..9f304385 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs @@ -409,7 +409,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers if (childArr.Length == 2) { var paramsId = Convert.ToInt32(childArr[0]); - var paramsModel = goodsParams.First(p => p.id == paramsId); + var paramsModel = goodsParams.Find(p => p.id == paramsId); if (paramsModel != null) { list.Add(new WxNameValueDto()