聚水潭食品类目上传
This commit is contained in:
1 parent
7b06707a40
commit
1b2b6bb553
12 files changed
+430
-16
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user