From 898ad991cda26eea50a338e513fac4750872ffb5 Mon Sep 17 00:00:00 2001 From: jianweie Date: Tue, 4 Jul 2023 15:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=90=8E=E5=8F=B0sku=E4=B8=8A=E4=BC=A0=E5=9C=A8?= =?UTF-8?q?=E6=97=A0=E5=9B=BE=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E9=99=90?= =?UTF-8?q?=E5=88=B6jpg=E6=A0=BC=E5=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs index 5778054e..de399743 100644 --- a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs +++ b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs @@ -242,7 +242,7 @@ namespace CoreCms.Net.Repository obj.points = oldObj.points; obj.isDefalut = true; obj.isDel = false; - if (string.IsNullOrEmpty(obj.images) || !obj.images.Contains(".jpg")) + if (string.IsNullOrEmpty(obj.images)) { obj.images = goods.image; } @@ -514,7 +514,7 @@ namespace CoreCms.Net.Repository { p.isDefalut = child.isDefalut; - if (!string.IsNullOrEmpty(child.images) && child.images.Contains(".jpg")) + if (!string.IsNullOrEmpty(child.images)) { p.images = child.images; } @@ -614,7 +614,7 @@ namespace CoreCms.Net.Repository obj.points = p.points; obj.isDefalut = p.isDefalut; obj.images = p.images; - if (string.IsNullOrEmpty(p.images) || !p.images.Contains(".jpg")) + if (string.IsNullOrEmpty(p.images)) { obj.images = oldModel.image; } @@ -671,7 +671,7 @@ namespace CoreCms.Net.Repository obj.images = newObj.images; obj.isDefalut = true; obj.isDel = false; - if (string.IsNullOrEmpty(newObj.images) || !newObj.images.Contains(".jpg")) + if (string.IsNullOrEmpty(newObj.images)) { obj.images = oldModel.image; } @@ -703,7 +703,7 @@ namespace CoreCms.Net.Repository obj.spesDesc = ""; obj.isDefalut = true; obj.isDel = false; - if (string.IsNullOrEmpty(newObj.images) || !newObj.images.Contains(".jpg")) + if (string.IsNullOrEmpty(newObj.images)) { obj.images = oldModel.image; }