作者 lyh

变更数据

... ... @@ -211,14 +211,8 @@ class NewsController extends BaseController
public function edit_seo(NewsLogic $newsLogic){
$this->request->validate([
'id'=>['required'],
'seo_title'=>['required'],
'seo_description'=>['required'],
'seo_keywords'=>['required'],
],[
'id.required' => 'ID不能为空',
'seo_title.required' => 'seo_title不能为空',
'seo_description.required' => 'seo_description不能为空',
'seo_keywords.required' => 'seo_description不能为空',
]);
$newsLogic->edit_seo();
$this->response('success');
... ...
... ... @@ -41,7 +41,7 @@ class NewsRequest extends FormRequest
'url.required'=>'链接不能为空',
// 'remark.max'=>'描述超过最长长度2000'
'seo_title.max' => 'SEO标题不能超过70个字符',
'seo_keywords.max' => 'SEO关键词不能超过200个字符',
'seo_keywords.max' => 'SEO关键词不能超过300个字符',
'seo_description.max' => 'SEO描述不能超过200个字符',
];
}
... ...