【修复】修复团购、秒杀因为一个字符问题导致列表获取失败问题。

pull/179/head
JianWeie 3 years ago
parent a5596e24fb
commit 769f543cc5

@ -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;
}

@ -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;
}

Loading…
Cancel
Save