作者 lyh

变更数据

@@ -211,14 +211,8 @@ class NewsController extends BaseController @@ -211,14 +211,8 @@ class NewsController extends BaseController
211 public function edit_seo(NewsLogic $newsLogic){ 211 public function edit_seo(NewsLogic $newsLogic){
212 $this->request->validate([ 212 $this->request->validate([
213 'id'=>['required'], 213 'id'=>['required'],
214 - 'seo_title'=>['required'],  
215 - 'seo_description'=>['required'],  
216 - 'seo_keywords'=>['required'],  
217 ],[ 214 ],[
218 'id.required' => 'ID不能为空', 215 'id.required' => 'ID不能为空',
219 - 'seo_title.required' => 'seo_title不能为空',  
220 - 'seo_description.required' => 'seo_description不能为空',  
221 - 'seo_keywords.required' => 'seo_description不能为空',  
222 ]); 216 ]);
223 $newsLogic->edit_seo(); 217 $newsLogic->edit_seo();
224 $this->response('success'); 218 $this->response('success');
@@ -41,7 +41,7 @@ class NewsRequest extends FormRequest @@ -41,7 +41,7 @@ class NewsRequest extends FormRequest
41 'url.required'=>'链接不能为空', 41 'url.required'=>'链接不能为空',
42 // 'remark.max'=>'描述超过最长长度2000' 42 // 'remark.max'=>'描述超过最长长度2000'
43 'seo_title.max' => 'SEO标题不能超过70个字符', 43 'seo_title.max' => 'SEO标题不能超过70个字符',
44 - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', 44 + 'seo_keywords.max' => 'SEO关键词不能超过300个字符',
45 'seo_description.max' => 'SEO描述不能超过200个字符', 45 'seo_description.max' => 'SEO描述不能超过200个字符',
46 ]; 46 ];
47 } 47 }