'require|number', 'amount' => 'require', 'operatetype' => 'require', 'pdc_amount' => 'require|min:0.01', 'password' => 'require' ]; protected $message = [ 'member_id.require' => '用户名必须存在', 'member_id.number' => '用户名错误', 'amount.require' => '金额为必填', 'operatetype.require' => '增减类型为必填', 'pdc_amount.require' => '提现金额为大于或者等于0.01的数字', 'pdc_amount.min' => '提现金额为大于或者等于0.01的数字', 'password.require' => '请输入支付密码' ]; protected $scene = [ 'pd_add' => ['member_id', 'amount', 'operatetype'], 'pd_cash_add' => ['pdc_amount', 'password'], ]; }