商品选品准备工作

This commit is contained in:
wule committed 2025-07-15 19:09:45 +08:00
1 parent dda4fdfc5f
commit a77278c6d1
34 files changed
+2336 -48

No files matched your search

+12 -4
View File
@@ -560,7 +560,7 @@ namespace TemuKJD.KJDForms.AdminForms
{
var goodsLayerDecorationItem = new GoodsLayerDecorationReqsItem()
{
floorId = "" + goodsLayerDecorationVOInfo.floorId,
floorId = goodsLayerDecorationVOInfo.floorId,
key = goodsLayerDecorationVOInfo.key,
lang = goodsLayerDecorationVOInfo.lang,
priority = goodsLayerDecorationVOInfo.priority,
@@ -579,12 +579,16 @@ namespace TemuKJD.KJDForms.AdminForms
}
prodParam.goodsLayerDecorationReqs.Add(goodsLayerDecorationItem);
}
prodParam.goodsModelReqs = prodInfo.goodsModelList;
prodParam.goodsModelReqs = prodInfo.goodsModelList != null? prodInfo.goodsModelList : new List<object>();
prodParam.materialImgUrl = prodInfo.materialImgUrl;
prodParam.materialMultiLanguages = prodInfo.productLocalExtAttr.materialMultiLanguages != null ?
prodInfo.productLocalExtAttr.materialMultiLanguages : new List<object>();
prodParam.personalizationSwitch = prodInfo.productWhExtAttr.personalizationSwitch.ParseToInt();
prodParam.productCarouseVideoReqList = prodInfo.carouseVideoVOList;
var carouseVideoVOList = JsonHelper.SerializeObject(prodInfo.carouseVideoVOList);
prodParam.productCarouseVideoReqList = JsonHelper.DeserializeJsonToList<productCarouseVideoReqItem>(carouseVideoVOList);
if (prodParam.productCarouseVideoReqList == null)
prodParam.productCarouseVideoReqList = new List<productCarouseVideoReqItem>();
//此处打开商品编辑详情无法获取到,如何查询存疑
prodParam.productComplianceStatementReq = new ProductComplianceStatementReq
{
@@ -709,6 +713,8 @@ namespace TemuKJD.KJDForms.AdminForms
};
skuItem.productSkuNonAuditExtAttrReq = JsonHelper.DeserializeJsonToObject<ProductSkuNonAuditExtAttrReq>(
JsonHelper.SerializeObject(skuInfo.productSkuNonAuditExtAttr));
if (skuItem.productSkuNonAuditExtAttrReq == null)
skuItem.productSkuNonAuditExtAttrReq = new ProductSkuNonAuditExtAttrReq();
skuItem.productSkuSpecReqs=new List<ProductSkuSpecReqsItem>();
int groupId = 0;
foreach(var skuSpecInfo in skuInfo.productSkuSpecList)
@@ -808,7 +814,9 @@ namespace TemuKJD.KJDForms.AdminForms
else
{
var error = BaseRegex.GetStringJson(ref html, "errorMsg");
BaseMsgForm.ShowError("上传商品失败" + error + "\r\n,请在草稿箱查找商品!");
if (string.IsNullOrWhiteSpace(error))
error = BaseRegex.GetStringJson(ref html, "error_msg");
BaseMsgForm.ShowError(("上传商品失败\r\n" + error + "\r\n请在草稿箱查找商品!").Replace("\r\n\r\n","\r\n"));
return;
}
}