【修复】修复商品新增可能sku图片未提交的问题。

This commit is contained in:
jianweie code
2023-12-15 11:10:44 +08:00
parent 14e3638a9f
commit f280c3b490

View File

@@ -193,6 +193,7 @@ namespace CoreCms.Net.Repository
obj.points = p.points; obj.points = p.points;
obj.isDefalut = p.isDefalut; obj.isDefalut = p.isDefalut;
obj.isDel = false; obj.isDel = false;
obj.images=p.images;
products.Add(obj); products.Add(obj);
var pd = new CoreCmsProductsDistribution(); var pd = new CoreCmsProductsDistribution();
@@ -242,6 +243,8 @@ namespace CoreCms.Net.Repository
obj.points = oldObj.points; obj.points = oldObj.points;
obj.isDefalut = true; obj.isDefalut = true;
obj.isDel = false; obj.isDel = false;
obj.images = oldObj.images;
if (string.IsNullOrEmpty(obj.images)) if (string.IsNullOrEmpty(obj.images))
{ {
obj.images = goods.image; obj.images = goods.image;