<?php namespace app\validate; class InputAdd extends \think\Validate { protected $rule = [ 'qydm' => 'require', ]; protected $message = [ 'qydm.require' => '不能为空', ]; }