修复导入数据 缺少SKU spec

This commit is contained in:
chfei committed 2026-10-22 18:30:45 +08:00
1 parent 8b89d13573
commit 628e2d3786
4 files changed
+20 -19

No files matched your search

+2 -2
View File
@@ -1959,8 +1959,8 @@ namespace TemuKJD.BLL
var specList = skuItem.Spec.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList();
foreach (var spec in specList)
{
string specKey = spec.Split(':')[0];
string specValue = spec.Split(':')[1];
string specKey = spec.Split(':')[0].Trim();
string specValue = spec.Split(':')[1].Trim();
var specItem = frontProdInfo.Specs.FirstOrDefault(a => a.SpecKey == specKey && a.SpecValue == specValue);
if (specItem == null) continue;
skuInfo.spec.Add(new spec_item()