正在显示
6 个修改的文件
包含
14 行增加
和
14 行删除
| @@ -198,18 +198,18 @@ class CustomModuleContentController extends BaseController | @@ -198,18 +198,18 @@ class CustomModuleContentController extends BaseController | ||
| 198 | */ | 198 | */ |
| 199 | public function save(CustomModuleContentLogic $logic){ | 199 | public function save(CustomModuleContentLogic $logic){ |
| 200 | $this->request->validate([ | 200 | $this->request->validate([ |
| 201 | - 'name'=>['required'], | 201 | + 'name'=>['required','max:200'], |
| 202 | 'route'=>['required'], | 202 | 'route'=>['required'], |
| 203 | 'module_id'=>['required'], | 203 | 'module_id'=>['required'], |
| 204 | // 'seo_title'=>['max:70'], | 204 | // 'seo_title'=>['max:70'], |
| 205 | - 'seo_keywords'=>['max:200'], | 205 | + 'seo_keywords'=>['max:300'], |
| 206 | 'seo_description'=>['max:200'], | 206 | 'seo_description'=>['max:200'], |
| 207 | ],[ | 207 | ],[ |
| 208 | 'name.required' => '分类名称不能为空', | 208 | 'name.required' => '分类名称不能为空', |
| 209 | 'route.required' => '分类路由不能为空', | 209 | 'route.required' => '分类路由不能为空', |
| 210 | 'module_id.required' => '所选模块id不能为空', | 210 | 'module_id.required' => '所选模块id不能为空', |
| 211 | // 'seo_title.max' => 'SEO标题不能超过70个字符', | 211 | // 'seo_title.max' => 'SEO标题不能超过70个字符', |
| 212 | - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', | 212 | + 'seo_keywords.max' => 'SEO关键词不能超过300个字符', |
| 213 | 'seo_description.max' => 'SEO描述不能超过200个字符', | 213 | 'seo_description.max' => 'SEO描述不能超过200个字符', |
| 214 | ]); | 214 | ]); |
| 215 | $data = $logic->contentSave(); | 215 | $data = $logic->contentSave(); |
| @@ -26,7 +26,7 @@ class AiBlogRequest extends FormRequest | @@ -26,7 +26,7 @@ class AiBlogRequest extends FormRequest | ||
| 26 | return [ | 26 | return [ |
| 27 | 'new_title'=>'required', | 27 | 'new_title'=>'required', |
| 28 | // 'seo_title'=>'max:70', | 28 | // 'seo_title'=>'max:70', |
| 29 | - 'seo_keywords'=>'max:200', | 29 | + 'seo_keywords'=>'max:300', |
| 30 | 'seo_description'=>'max:200', | 30 | 'seo_description'=>'max:200', |
| 31 | ]; | 31 | ]; |
| 32 | } | 32 | } |
| @@ -36,7 +36,7 @@ class AiBlogRequest extends FormRequest | @@ -36,7 +36,7 @@ class AiBlogRequest extends FormRequest | ||
| 36 | return [ | 36 | return [ |
| 37 | 'new_title.required' => '新标题不能为空', | 37 | 'new_title.required' => '新标题不能为空', |
| 38 | // 'seo_title.max' => 'SEO标题不能超过70个字符', | 38 | // 'seo_title.max' => 'SEO标题不能超过70个字符', |
| 39 | - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', | 39 | + 'seo_keywords.max' => 'SEO关键词不能超过300个字符', |
| 40 | 'seo_description.max' => 'SEO描述不能超过200个字符', | 40 | 'seo_description.max' => 'SEO描述不能超过200个字符', |
| 41 | ]; | 41 | ]; |
| 42 | } | 42 | } |
| @@ -25,8 +25,8 @@ class BlogCategoryRequest extends FormRequest | @@ -25,8 +25,8 @@ class BlogCategoryRequest extends FormRequest | ||
| 25 | { | 25 | { |
| 26 | return [ | 26 | return [ |
| 27 | 'name'=>'required|max:200', | 27 | 'name'=>'required|max:200', |
| 28 | - 'seo_title'=>'max:70', | ||
| 29 | - 'seo_keywords'=>'max:200', | 28 | +// 'seo_title'=>'max:70', |
| 29 | + 'seo_keywords'=>'max:300', | ||
| 30 | 'seo_description'=>'max:200', | 30 | 'seo_description'=>'max:200', |
| 31 | ]; | 31 | ]; |
| 32 | } | 32 | } |
| @@ -36,8 +36,8 @@ class BlogCategoryRequest extends FormRequest | @@ -36,8 +36,8 @@ class BlogCategoryRequest extends FormRequest | ||
| 36 | return [ | 36 | return [ |
| 37 | 'name.required'=>'请填写名称', | 37 | 'name.required'=>'请填写名称', |
| 38 | 'name.max'=>'名称最大200字', | 38 | 'name.max'=>'名称最大200字', |
| 39 | - 'seo_title.max' => 'SEO标题不能超过70个字符', | ||
| 40 | - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', | 39 | +// 'seo_title.max' => 'SEO标题不能超过70个字符', |
| 40 | + 'seo_keywords.max' => 'SEO关键词不能超过300个字符', | ||
| 41 | 'seo_description.max' => 'SEO描述不能超过200个字符', | 41 | 'seo_description.max' => 'SEO描述不能超过200个字符', |
| 42 | ]; | 42 | ]; |
| 43 | } | 43 | } |
| @@ -28,7 +28,7 @@ class BlogRequest extends FormRequest | @@ -28,7 +28,7 @@ class BlogRequest extends FormRequest | ||
| 28 | 'remark'=>'max:1000', | 28 | 'remark'=>'max:1000', |
| 29 | 'url'=>'required', | 29 | 'url'=>'required', |
| 30 | // 'seo_title'=>'max:70', | 30 | // 'seo_title'=>'max:70', |
| 31 | - 'seo_keywords'=>'max:200', | 31 | + 'seo_keywords'=>'max:300', |
| 32 | 'seo_description'=>'max:200', | 32 | 'seo_description'=>'max:200', |
| 33 | // 'text'=>'max:5000', | 33 | // 'text'=>'max:5000', |
| 34 | ]; | 34 | ]; |
| @@ -41,7 +41,7 @@ class BlogRequest extends FormRequest | @@ -41,7 +41,7 @@ class BlogRequest extends FormRequest | ||
| 41 | 'name.max'=>'名称超过最长长度200', | 41 | 'name.max'=>'名称超过最长长度200', |
| 42 | 'url.required'=>'链接不能为空', | 42 | 'url.required'=>'链接不能为空', |
| 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 | 'remark.max'=>'描述超过最长长度1000', | 46 | 'remark.max'=>'描述超过最长长度1000', |
| 47 | // 'text.max'=>'详情内容超过最大长度', | 47 | // 'text.max'=>'详情内容超过最大长度', |
| @@ -26,7 +26,7 @@ class NewsCategoryRequest extends FormRequest | @@ -26,7 +26,7 @@ class NewsCategoryRequest extends FormRequest | ||
| 26 | return [ | 26 | return [ |
| 27 | 'name'=>'required|max:200', | 27 | 'name'=>'required|max:200', |
| 28 | // 'seo_title'=>'max:70', | 28 | // 'seo_title'=>'max:70', |
| 29 | - 'seo_keywords'=>'max:200', | 29 | + 'seo_keywords'=>'max:300', |
| 30 | 'seo_description'=>'max:200', | 30 | 'seo_description'=>'max:200', |
| 31 | ]; | 31 | ]; |
| 32 | } | 32 | } |
| @@ -37,7 +37,7 @@ class NewsCategoryRequest extends FormRequest | @@ -37,7 +37,7 @@ class NewsCategoryRequest extends FormRequest | ||
| 37 | 'name.required'=>'请填写名称', | 37 | 'name.required'=>'请填写名称', |
| 38 | 'name.max'=>'名称最大100字', | 38 | 'name.max'=>'名称最大100字', |
| 39 | // 'seo_title.max' => 'SEO标题不能超过70个字符', | 39 | // 'seo_title.max' => 'SEO标题不能超过70个字符', |
| 40 | - 'seo_keywords.max' => 'SEO关键词不能超过200个字符', | 40 | + 'seo_keywords.max' => 'SEO关键词不能超过300个字符', |
| 41 | 'seo_description.max' => 'SEO描述不能超过200个字符', | 41 | 'seo_description.max' => 'SEO描述不能超过200个字符', |
| 42 | ]; | 42 | ]; |
| 43 | } | 43 | } |
| @@ -28,7 +28,7 @@ class NewsRequest extends FormRequest | @@ -28,7 +28,7 @@ class NewsRequest extends FormRequest | ||
| 28 | // 'remark'=>'max:2000', | 28 | // 'remark'=>'max:2000', |
| 29 | 'url'=>'required', | 29 | 'url'=>'required', |
| 30 | // 'seo_title' => 'max:70', | 30 | // 'seo_title' => 'max:70', |
| 31 | - 'seo_keywords' => 'max:200', | 31 | + 'seo_keywords' => 'max:300', |
| 32 | 'seo_description' => 'max:200', | 32 | 'seo_description' => 'max:200', |
| 33 | ]; | 33 | ]; |
| 34 | } | 34 | } |
-
请 注册 或 登录 后发表评论