<?php namespace app\common\validate; use think\Validate; class AttendanceClass extends Validate{ protected $rule = [ 'name|名称' => 'require', ]; }