修复上传问题

This commit is contained in:
wule_5900x committed 2026-04-03 02:05:23 +08:00
1 parent c0b7c2d986
commit b62deb2e99
4 files changed
+121 -115

No files matched your search

@@ -2789,7 +2789,7 @@ namespace TemuKJD.WXForms.ProductForms
{
foreach (var propInfo in prodInfo.property.goods_properties)
{
if (propInfo.name == "单件净含量")
if (propInfo.name == "容量")
{
}
@@ -2984,8 +2984,19 @@ namespace TemuKJD.WXForms.ProductForms
// attrValue = "20 cm";
//else if (attr.value.Contains("岁以上") && attr.value.Contains("个月以上"))
// attrValue = "7 岁以上";
//else if (attr.value == "只;个")
// attrValue = "1 个";
else if (attr.value == "只;个")
{
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith("只") || (propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith("个"))
{
attrValue = propInfo.values.FirstOrDefault()?.value;
if (attrValue.TrimEnd('只', '个').ParseToInt() == 0)
attrValue = BaseRegex.GetMatchMaxRegexString(ref attrValue, "(\\d{1,6})") + (attrValue.Contains("只") ? " 只" : " 个");
if (attrValue.TrimEnd('只', '个').ParseToInt() == 0)
attrValue = "1 个";
}
else
attrValue = "1 个";
}
else if (attr.value == "ml")
{
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith(attr.value))
@@ -2996,9 +3007,15 @@ namespace TemuKJD.WXForms.ProductForms
else if (attr.value == "L")
{
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith(attr.value))
{
attrValue = propInfo.values.FirstOrDefault()?.value;
if (attrValue.TrimEnd('L').ParseToInt() == 0)
attrValue = BaseRegex.GetMatchMaxRegexString(ref attrValue, "(\\d{1,6})") + " L";
if (attrValue.TrimEnd('L').ParseToInt() == 0)
attrValue = "1 L";
}
else
attr.value = "100 ml";
attr.value = "1 L";
}
else if (attr.value == "g;kg;ml;L")
{
@@ -3158,6 +3175,8 @@ namespace TemuKJD.WXForms.ProductForms
attrValue = "1 个";
else if (attr.value == "ml")
attrValue = "100 ml";
else if (attr.value == "L")
attrValue = "1 L";
}
var wxPropParam = new wxPropParam();