完善商品栏目管理选择模板,商品栏目、商品伪静态地址生成

This commit is contained in:
2024-06-26 17:48:08 +08:00
parent 3328ba055b
commit 48b68889b0
14 changed files with 294 additions and 64 deletions
+3 -3
View File
@@ -81,13 +81,13 @@ namespace COMCMS.Web.Common
return false;
}
}
else if(typeid == 1)
else if(typeid == 1)//商品
{
if (ArticleCategory.FindCount(ArticleCategory._.FilePath == pathname , null, null, 0, 0) > 0)
if (Category.FindCount(Category._.FilePath == pathname & Category._.Id != kid, null, null, 0, 0) > 0)
{
return false;
}
if (Category.FindCount(Category._.FilePath == pathname & Category._.Id != kid, null, null, 0, 0) > 0)
if (ArticleCategory.FindCount(ArticleCategory._.FilePath == pathname, null, null, 0, 0) > 0)
{
return false;
}