refactor: 去除分类管理seo相关项

This commit is contained in:
2025-02-28 10:09:47 +08:00
parent 27935b529f
commit a0e90d0a06
6 changed files with 5 additions and 32 deletions

View File

@@ -37,10 +37,7 @@ class ArticleCategory
$category = ArticleCategoryModel::withoutField([
'language_id',
'deleted_at',
'seo_title',
'seo_keywords',
'seo_desc',
'deleted_at'
])
->language(request()->lang_id)
->where(function($query) use($param) {
@@ -76,10 +73,7 @@ class ArticleCategory
$post = request()->post([
'name',
'sort' => 0,
'is_show' => 1,
'seo_title',
'seo_keywords',
'seo_desc',
'is_show' => 1
]);
$data = array_merge($post, ['language_id' => request()->lang_id]);
@@ -102,10 +96,7 @@ class ArticleCategory
$put = request()->put([
'name',
'sort',
'is_show',
'seo_title',
'seo_keywords',
'seo_desc',
'is_show'
]);
$data = array_merge($put, ['language_id' => request()->lang_id]);

View File

@@ -74,10 +74,7 @@ class ProductCategory
'related_tco_category',
'sort',
'level' => 1,
'is_show' => 1,
'seo_title',
'seo_keywords',
'seo_desc'
'is_show' => 1
]);
if (empty($post['unique_id'])) {
$post['unique_id'] = md5(uniqid());
@@ -120,10 +117,7 @@ class ProductCategory
'related_tco_category',
'sort',
'level' => 1,
'is_show' => 1,
'seo_title',
'seo_keywords',
'seo_desc'
'is_show' => 1
]);
$data = array_merge($put, [
'id' => $id,