'in:weigh,sales,price,views,comments', ]; /** * 提示消息 */ protected $message = [ 'orderby.in' => '排序字段只能是权重、销量、价格、浏览数或评论数', ]; /** * 验证场景 */ protected $scene = [ 'lists' => ['orderby'], ]; }