refactor: 横幅标题字数限制改为256
This commit is contained in:
@@ -16,7 +16,7 @@ class SysBannerItemValidate extends Validate
|
||||
protected $rule = [
|
||||
'id' => 'require|integer',
|
||||
'banner_id' => 'require|integer',
|
||||
'title' => 'require|max:128',
|
||||
'title' => 'require|max:256',
|
||||
'title_txt_color' => 'max:7',
|
||||
'desc' => 'max:1024',
|
||||
'desc_txt_color' => 'max:7',
|
||||
@@ -41,7 +41,7 @@ class SysBannerItemValidate extends Validate
|
||||
'banner_id.require' => '横幅项分类不能为空',
|
||||
'banner_id.integer' => '横幅项分类必须是整数',
|
||||
'title.require' => '名称不能为空',
|
||||
'title.max' => '名称最多不能超过128个字符',
|
||||
'title.max' => '名称最多不能超过256个字符',
|
||||
'title_txt_color.max' => '名称字体颜色最多不能超过7个字符',
|
||||
'desc.max' => '描述最多不能超过1024个字符',
|
||||
'desc_txt_color.max' => '描述字体颜色最多不能超过7个字符',
|
||||
|
||||
Reference in New Issue
Block a user