代理版本调试

This commit is contained in:
wule_5900x committed 2026-07-05 22:53:54 +08:00
1 parent 0b325e7cd8
commit 8ff2508632
36 files changed
+1049 -342

No files matched your search

@@ -3208,6 +3208,7 @@ namespace TemuKJD.WXForms.ProductForms
}
if (propInfo.values.Count == 0)
continue;
var attr = productAttr.attr.FirstOrDefault(r => r.name == propInfo.name);
if (attr == null)
@@ -3509,6 +3510,27 @@ namespace TemuKJD.WXForms.ProductForms
else
attrValue = "100 g";
}
else if (attr.value == "日;月;年")
{
var propInfoValue = (propInfo.values.FirstOrDefault()?.value).ParseToString();
if (propInfoValue.EndsWith("日") || propInfoValue.EndsWith("月") || propInfoValue.EndsWith("年"))
attrValue = propInfo.values.FirstOrDefault()?.value + propInfoValue.LastOrDefault();
else
attrValue = "30 日";
}
else if (attr.value.ParseToString().Length > 0 && !attr.value.ParseToString().Contains(";"))
{
if ((propInfo.values.FirstOrDefault()?.value).ParseToString().EndsWith(attr.value))
{
attrValue = propInfo.values.FirstOrDefault()?.value;
if (attrValue.Substring(0, attrValue.Length - attr.value.Length - 1).ParseToInt() == 0)
attrValue = BaseRegex.GetMatchMaxRegexString(ref attrValue, "(\\d{1,6})") + " " + attr.value;
if (attrValue.Substring(0, attrValue.Length - attr.value.Length - 1).ParseToInt() == 0)
attrValue = "1 " + attr.value;
}
else
attrValue = "1 " + attr.value;
}
else
{
var param = recommendParamRst.productInfo.param.FirstOrDefault(p => p.categorys?.FirstOrDefault()?.name == attr.name);
@@ -3731,6 +3753,8 @@ namespace TemuKJD.WXForms.ProductForms
attrValue = "100 ml";
else if (attr.value == "L")
attrValue = "1 L";
else if (attr.value == "日;月;年")
attrValue = "30 日";
}
var wxPropParam = new wxPropParam();
@@ -123,7 +123,6 @@ namespace TemuKJD.WXForms.ProductForms
private void btnOk_Click(object sender, EventArgs e)
{
//var url = BaseClass.BuildPDDObjString("product/mdy_product_notes");
var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
var data = UserLogin.GetSignaturex() +
"&db_id=" + dbProd.id + "&notes=" + this.txtNotes.Text.Trim();