You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
627 B

<?php
namespace app\lib\validate;
use think\Request;
class SecondColumnContentCheck extends BaseValidate
{
protected $rule = [
'second_id'=>'require',
'title'=>'require',
'content'=>'require'
];
protected $message = [
'second_id.require'=>'请选择一个所属栏目',
'title.require'=>'添加文章标题不能为空',
'content.require'=>'添加内容不能为空'
];
public function requestMethodCheckHook()
{
if(!Request::instance()->isPost()){
return false;
}
return true;
}
}