<?php namespace app\common\validate; use think\Validate; class AssetAdd extends Validate{ protected $rule = [ 'title|名称' => 'require|length:1,30', ]; }