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.

37 lines
712 B

4 years ago
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/2/5
* Time: 18:24
*/
namespace app\lib\validate;
use think\Request;
class SecondColumnContentCeck extends BaseValidate
{
protected $rule = [
// 'title'=>'require',
'second_id'=>'require',
'content'=>'require',
];
protected $message = [
// 'title.require'=>'标题不能为空',
'content.require'=>'内容不能为空',
'second_id.require'=>'请选择所属二级栏目',
];
public function requestMethodCheckHook()
{
if(!Request::instance()->isPost()){
return false;
}
return true;
}
}