Merge branch 'master' of http://git.ts.e57.cn/chfei/KJD
This commit is contained in:
commit
833c653d3e
10 files changed
+1215
-1129
No files matched your search
@@ -3906,7 +3906,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
if (upProdParam.product.info.category.FirstOrDefault()?.name == "食品饮料" || prodInfo.detail.cats.FirstOrDefault() == "食品饮料")
|
||||
{
|
||||
if (propInfo.name == "厂名")
|
||||
if (propInfo.name == "厂名" && !prodInfo.property.goods_properties.Any(p => p.name == "生产企业名称"))
|
||||
attr = productAttr.attr.FirstOrDefault(r => r.name == "生产企业名称");
|
||||
else if (propInfo.name == "食品生产许可证编号")
|
||||
attr = productAttr.attr.FirstOrDefault(r => r.name == "食品生产许可证编号");
|
||||
@@ -4505,6 +4505,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var param in upProdParam.product.info.param.ToList())
|
||||
{
|
||||
var nameExistParams = upProdParam.product.info.param.Where(c => c.categorys?.FirstOrDefault()?.name == param.categorys?.FirstOrDefault()?.name).ToList();
|
||||
for (int i = 0; i < 10 && nameExistParams.Count > 1; i++)
|
||||
{
|
||||
upProdParam.product.info.param.Remove(nameExistParams.LastOrDefault());
|
||||
nameExistParams = upProdParam.product.info.param.Where(c => c.categorys?.FirstOrDefault()?.name == param.categorys?.FirstOrDefault()?.name).ToList();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region sku规格属性
|
||||
@@ -6226,6 +6235,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//生成主图base64字符串
|
||||
string getImgError;
|
||||
//if (!img_url.Contains("wst.wxapp.tc.qq.com") && !img_url.Contains("mmecimage.cn"))
|
||||
//优选靓键店 登录 进店 397652670 重庆川味百年传奇山椒笋尖低脂解馋泡椒脆笋脆嫩爽口开胃解腻追剧办公解馋休闲小零食独立小包装 547009 371857150 0 初始化图片上传失败 值不能为 null。
|
||||
//参数名: source https://wst.wxapp.tc.qq.com/161/20304/snscosdownload/SH/reserved/6acd9a520004f3272b49791884351f15000000a100004f50 14秒
|
||||
if (!img_url.Contains("wxapp") && !img_url.Contains("mmecimage.cn"))
|
||||
img_url = img_url.Replace("https://", "http://");
|
||||
var image = GetHtml.GetUrlImg(img_url, out getImgError);
|
||||
|
||||
Reference in new issue
Block a user