<?php namespace app\common\validate; use think\Validate; class WasteScale extends Validate{ protected $rule = [ 'scale_sn|电子称编号' => 'require', 'user_id|绑定人员' => 'require', 'printer_sn|打印机编号' => 'require', ]; protected $message = [ 'user_id.require' => '请选择绑定人员', ]; protected $scene = [ ]; }