mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:13:26 +08:00
【优化】商品获取参数列表循环中,将first调整为find,防止出现偶发性的Linq查询失效问题。
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user