refactor: 修改产品分类新增唯一标识处理

This commit is contained in:
2025-03-07 10:28:31 +08:00
parent 6afaf8cd00
commit 7cf776f821

View File

@@ -77,7 +77,7 @@ class ProductCategory
'is_show' => 1 'is_show' => 1
]); ]);
if (empty($post['unique_id'])) { if (empty($post['unique_id'])) {
$post['unique_id'] = md5(uniqid()); $post['unique_id'] = uniqid('PRO_CATE_');
} }
$data = array_merge($post, ['language_id' => request()->lang_id]); $data = array_merge($post, ['language_id' => request()->lang_id]);