作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !2888
@@ -30,7 +30,6 @@ class BlogRequest extends FormRequest @@ -30,7 +30,6 @@ class BlogRequest extends FormRequest
30 // 'seo_title'=>'max:70', 30 // 'seo_title'=>'max:70',
31 'seo_keywords'=>'max:300', 31 'seo_keywords'=>'max:300',
32 'seo_description'=>'max:200', 32 'seo_description'=>'max:200',
33 -// 'text'=>'max:5000',  
34 ]; 33 ];
35 } 34 }
36 35
@@ -44,7 +43,6 @@ class BlogRequest extends FormRequest @@ -44,7 +43,6 @@ class BlogRequest extends FormRequest
44 'seo_keywords.max' => 'SEO关键词不能超过300个字符', 43 'seo_keywords.max' => 'SEO关键词不能超过300个字符',
45 'seo_description.max' => 'SEO描述不能超过200个字符', 44 'seo_description.max' => 'SEO描述不能超过200个字符',
46 'remark.max'=>'描述超过最长长度1000', 45 'remark.max'=>'描述超过最长长度1000',
47 -// 'text.max'=>'详情内容超过最大长度',  
48 ]; 46 ];
49 } 47 }
50 } 48 }
@@ -25,7 +25,6 @@ class NewsRequest extends FormRequest @@ -25,7 +25,6 @@ class NewsRequest extends FormRequest
25 { 25 {
26 return [ 26 return [
27 'name'=>'required|max:200', 27 'name'=>'required|max:200',
28 -// 'remark'=>'max:2000',  
29 'url'=>'required', 28 'url'=>'required',
30 // 'seo_title' => 'max:70', 29 // 'seo_title' => 'max:70',
31 'seo_keywords' => 'max:300', 30 'seo_keywords' => 'max:300',
@@ -39,7 +38,6 @@ class NewsRequest extends FormRequest @@ -39,7 +38,6 @@ class NewsRequest extends FormRequest
39 'name.required'=>'请填写名称', 38 'name.required'=>'请填写名称',
40 'name.max'=>'名称超过最长长度200', 39 'name.max'=>'名称超过最长长度200',
41 'url.required'=>'链接不能为空', 40 'url.required'=>'链接不能为空',
42 -// 'remark.max'=>'描述超过最长长度2000'  
43 // 'seo_title.max' => 'SEO标题不能超过70个字符', 41 // 'seo_title.max' => 'SEO标题不能超过70个字符',
44 'seo_keywords.max' => 'SEO关键词不能超过300个字符', 42 'seo_keywords.max' => 'SEO关键词不能超过300个字符',
45 'seo_description.max' => 'SEO描述不能超过200个字符', 43 'seo_description.max' => 'SEO描述不能超过200个字符',
@@ -32,9 +32,8 @@ class CategoryRequest extends FormRequest @@ -32,9 +32,8 @@ class CategoryRequest extends FormRequest
32 return [ 32 return [
33 'title'=>'required|max:200', 33 'title'=>'required|max:200',
34 'route'=>'required', 34 'route'=>'required',
35 -// 'image'=>'required',  
36 -// 'keywords'=>'max:50',  
37 -// 'describe'=>'max:200', 35 + 'seo_keywords'=>'max:300',
  36 + 'seo_description'=>'max:200',
38 ]; 37 ];
39 } 38 }
40 39
@@ -44,9 +43,8 @@ class CategoryRequest extends FormRequest @@ -44,9 +43,8 @@ class CategoryRequest extends FormRequest
44 'title.required' => '请输入分类名称', 43 'title.required' => '请输入分类名称',
45 'title.max' => '分类名称不能超过200个字符', 44 'title.max' => '分类名称不能超过200个字符',
46 'route.required' => '路由不能为空', 45 'route.required' => '路由不能为空',
47 -// 'image.required' => '请上传分类图片',  
48 -// 'keywords.max' => '分类关键词不能超过50个字符',  
49 -// 'describe.max' => '分类描述不能超过200个字符', 46 + 'seo_keywords.max' => 'SEO关键词不能超过300个字符',
  47 + 'seo_description.max' => 'SEO描述不能超过200个字符',
50 ]; 48 ];
51 } 49 }
52 50
@@ -32,7 +32,7 @@ class KeywordRequest extends FormRequest @@ -32,7 +32,7 @@ class KeywordRequest extends FormRequest
32 return [ 32 return [
33 'title'=>'required|max:200', 33 'title'=>'required|max:200',
34 // 'seo_title'=>'max:70', 34 // 'seo_title'=>'max:70',
35 - 'seo_keywords'=>'max:200', 35 + 'seo_keywords'=>'max:300',
36 'seo_description'=>'max:200', 36 'seo_description'=>'max:200',
37 'related_news_ids'=>'array|max:2', 37 'related_news_ids'=>'array|max:2',
38 'related_blog_ids'=>'array|max:2', 38 'related_blog_ids'=>'array|max:2',
@@ -45,7 +45,7 @@ class KeywordRequest extends FormRequest @@ -45,7 +45,7 @@ class KeywordRequest extends FormRequest
45 'title.required' => '请输入关键词', 45 'title.required' => '请输入关键词',
46 'title.max' => '关键词不能超过200个字符', 46 'title.max' => '关键词不能超过200个字符',
47 // 'seo_title.max' => 'SEO标题不能超过70个字符', 47 // 'seo_title.max' => 'SEO标题不能超过70个字符',
48 - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', 48 + 'seo_keywords.max' => 'SEO关键词不能超过300个字符',
49 'seo_description.max' => 'SEO描述不能超过200个字符', 49 'seo_description.max' => 'SEO描述不能超过200个字符',
50 'related_news_ids.max' => '关联新闻不能超过两条', 50 'related_news_ids.max' => '关联新闻不能超过两条',
51 'related_blog_ids.max' => '关联博客不能超过两条', 51 'related_blog_ids.max' => '关联博客不能超过两条',