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([
|
$banner = SysBannerModel::withoutField([
|
||||||
'at_page',
|
'at_page',
|
||||||
'unique_label',
|
|
||||||
'language_id',
|
'language_id',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at',
|
'updated_at',
|
||||||
@@ -142,10 +141,11 @@ class Banner
|
|||||||
'name',
|
'name',
|
||||||
'desc',
|
'desc',
|
||||||
'recommend',
|
'recommend',
|
||||||
|
'unique_label',
|
||||||
'at_platform' => 'pc',
|
'at_platform' => 'pc',
|
||||||
'status' => 1
|
'status' => 1
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$validate = new SysBannerValidate;
|
$validate = new SysBannerValidate;
|
||||||
if (!$validate->scene('edit')->check(array_merge($put, ['id' => $id]))) {
|
if (!$validate->scene('edit')->check(array_merge($put, ['id' => $id]))) {
|
||||||
return error($validate->getError());
|
return error($validate->getError());
|
||||||
|
|||||||
Reference in New Issue
Block a user