refactor: banner的desc校验修改

This commit is contained in:
2025-04-16 16:10:52 +08:00
parent 4617d113ef
commit 4151e893bd

View File

@@ -18,7 +18,7 @@ class SysBannerItemValidate extends Validate
'banner_id' => 'require|integer', 'banner_id' => 'require|integer',
'title' => 'require|max:128', 'title' => 'require|max:128',
'title_txt_color' => 'max:7', 'title_txt_color' => 'max:7',
'desc' => 'max:255', 'desc' => 'max:1024',
'desc_txt_color' => 'max:7', 'desc_txt_color' => 'max:7',
'type' => 'in:image,video', 'type' => 'in:image,video',
'image' => 'max:255', 'image' => 'max:255',
@@ -43,7 +43,7 @@ class SysBannerItemValidate extends Validate
'title.require' => '名称不能为空', 'title.require' => '名称不能为空',
'title.max' => '名称最多不能超过128个字符', 'title.max' => '名称最多不能超过128个字符',
'title_txt_color.max' => '名称字体颜色最多不能超过7个字符', 'title_txt_color.max' => '名称字体颜色最多不能超过7个字符',
'desc.max' => '描述最多不能超过255个字符', 'desc.max' => '描述最多不能超过1024个字符',
'desc_txt_color.max' => '描述字体颜色最多不能超过7个字符', 'desc_txt_color.max' => '描述字体颜色最多不能超过7个字符',
'type.in' => '显示类型必须是image或video', 'type.in' => '显示类型必须是image或video',
'image.max' => '图片地址最多不能超过255个字符', 'image.max' => '图片地址最多不能超过255个字符',