聚水潭食品类目上传

This commit is contained in:
wule committed 2026-02-23 21:28:09 +08:00
1 parent 7b06707a40
commit 1b2b6bb553
12 files changed
+430 -16

No files matched your search

+5 -1
View File
@@ -724,11 +724,12 @@ namespace TemuKJD.BLL
}
}
goods_propertie_item propInfo = new goods_propertie_item();
prodInfo.property.goods_properties.Add(propInfo);
propInfo.name = name;
propInfo.ref_pid = jProp["refPid"].ParseToInt();
string propStr = JsonHelper.SerializeObject(jProp);
propInfo.values = new List<value_item>();
if (propStr.Contains("multipleValue"))
if (propStr.Contains("multipleValue") && !propStr.Contains("\"multipleValue\":[]"))
{
foreach (var propValueObj in jProp["multipleValue"])
{
@@ -745,6 +746,9 @@ namespace TemuKJD.BLL
{
var label = BaseRegex.GetStringJson(ref propStr, "label");
var valueId = BaseRegex.GetStringJson(ref propStr, "value").ParseToLong();
if (string.IsNullOrEmpty(label))
label = BaseRegex.GetStringJson(ref propStr, "inputValue") + " " + BaseRegex.GetStringJson(ref propStr, "valueUnit");
label = label.Trim();
propInfo.values.Add(new value_item()
{
value = label,