Commit 99d86d75 authored by zhuwei's avatar zhuwei

1

parent 56a4093e
...@@ -52,16 +52,16 @@ class AmercementValidate extends Validate { ...@@ -52,16 +52,16 @@ class AmercementValidate extends Validate {
'id.number' => 'id只能为数字', 'id.number' => 'id只能为数字',
'id.gt' => 'id必须大于0', 'id.gt' => 'id必须大于0',
'edit_type.require' => 'type为必填字段', 'edit_type.require' => 'edit_type为必填字段',
'edit_type.number' => 'type只能为数字', 'edit_type.number' => 'edit_type只能为数字',
'edit_type.in' => 'type范围错误', 'edit_type.in' => 'edit_type范围错误',
]; ];
protected $scene = [ protected $scene = [
'addAmercement' => [ 'type', 'money', 'agent_id', 'remarks', 'img' ], 'addAmercement' => [ 'type', 'money', 'agent_id', 'remarks', 'img' ],
'getAmercementInfo' => [ 'id' ], 'getAmercementInfo' => [ 'id' ],
'editAmercement' => [ 'id' ,'edit_type'], 'editAmercement' => [ 'id', 'edit_type' ],
]; ];
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment