feat: banner分类添加unique_label字段管理
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2026-03-27 17:50:25 +08:00
parent be26f2d75b
commit 8577877f83

View File

@@ -91,7 +91,6 @@ class Banner
$banner = SysBannerModel::withoutField([
'at_page',
'unique_label',
'language_id',
'created_at',
'updated_at',
@@ -142,10 +141,11 @@ class Banner
'name',
'desc',
'recommend',
'unique_label',
'at_platform' => 'pc',
'status' => 1
]);
$validate = new SysBannerValidate;
if (!$validate->scene('edit')->check(array_merge($put, ['id' => $id]))) {
return error($validate->getError());