refactor: 后台横幅添加extra_image字段
This commit is contained in:
@@ -22,6 +22,7 @@ class SysBannerItemValidate extends Validate
|
||||
'desc_txt_color' => 'max:7',
|
||||
'type' => 'in:image,video',
|
||||
'image' => 'max:255',
|
||||
'extra_image' => 'max:255',
|
||||
'video' => 'max:255',
|
||||
'link_to' => 'requireIf:type,image|max:64|in:article,article_category,product,product_category,system_page,custom',
|
||||
'link' => 'max:255',
|
||||
@@ -47,6 +48,7 @@ class SysBannerItemValidate extends Validate
|
||||
'desc_txt_color.max' => '描述字体颜色最多不能超过7个字符',
|
||||
'type.in' => '显示类型必须是image或video',
|
||||
'image.max' => '图片地址最多不能超过255个字符',
|
||||
'extra_image.max' => '额外图片地址最多不能超过255个字符',
|
||||
'video.max' => '视频地址最多不能超过255个字符',
|
||||
'link_to.requireIf' => '链接类型不能为空',
|
||||
'link_to.max' => '链接类型最多不能超过64个字符',
|
||||
|
||||
Reference in New Issue
Block a user