| 123456789101112131415161718192021222324252627282930 | 
							- <?php
 
- // +----------------------------------------------------------------------
 
- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
 
- // +----------------------------------------------------------------------
 
- // | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
 
- // +----------------------------------------------------------------------
 
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
 
- // +----------------------------------------------------------------------
 
- // | Author: 小夏 < 449134904@qq.com>
 
- // +----------------------------------------------------------------------
 
- namespace app\portal\validate;
 
- use think\Validate;
 
- class AdminArticleValidate extends Validate
 
- {
 
-     protected $rule = [
 
-         'categories' => 'require',
 
-         'post_title' => 'require',
 
-     ];
 
-     protected $message = [
 
-         'categories.require' => '请指定文章分类!',
 
-         'post_title.require' => '文章标题不能为空!',
 
-     ];
 
-     protected $scene = [
 
- //        'add'  => ['user_login,user_pass,user_email'],
 
- //        'edit' => ['user_login,user_email'],
 
-     ];
 
- }
 
 
  |