// +---------------------------------------------------------------------- namespace app\validate\api; use think\Validate; class CommunityValidate extends Validate { protected $failException = true; protected $rule = [ 'image|图片' => 'require|array', 'content|内容' => 'require|max:600', 'spu_id|关联商品' => 'array', ]; }