|
...
|
...
|
@@ -198,18 +198,18 @@ class CustomModuleContentController extends BaseController |
|
|
|
*/
|
|
|
|
public function save(CustomModuleContentLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'name'=>['required'],
|
|
|
|
'name'=>['required','max:200'],
|
|
|
|
'route'=>['required'],
|
|
|
|
'module_id'=>['required'],
|
|
|
|
// 'seo_title'=>['max:70'],
|
|
|
|
'seo_keywords'=>['max:200'],
|
|
|
|
'seo_keywords'=>['max:300'],
|
|
|
|
'seo_description'=>['max:200'],
|
|
|
|
],[
|
|
|
|
'name.required' => '分类名称不能为空',
|
|
|
|
'route.required' => '分类路由不能为空',
|
|
|
|
'module_id.required' => '所选模块id不能为空',
|
|
|
|
// 'seo_title.max' => 'SEO标题不能超过70个字符',
|
|
|
|
'seo_keywords.max' => 'SEO关键词不能超过200个字符',
|
|
|
|
'seo_keywords.max' => 'SEO关键词不能超过300个字符',
|
|
|
|
'seo_description.max' => 'SEO描述不能超过200个字符',
|
|
|
|
]);
|
|
|
|
$data = $logic->contentSave();
|
...
|
...
|
|