feat: banner分类添加unique_label字段管理
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user