Commit 56a4093e authored by zhuwei's avatar zhuwei

1

parent 2c99521a
...@@ -132,7 +132,7 @@ class Amercement extends Basic ...@@ -132,7 +132,7 @@ class Amercement extends Basic
// "id" => 1, // "id" => 1,
// "edit_type" => 0,//0编辑 1取消 2转已支付 // "edit_type" => 0,//0编辑 1取消 2转已支付
// ); // );
$checkResult = $this->validate($params, "AmercementValidate.getAmercementInfo"); $checkResult = $this->validate($params, "AmercementValidate.editAmercement");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
} }
......
...@@ -60,7 +60,8 @@ class AmercementValidate extends Validate { ...@@ -60,7 +60,8 @@ class AmercementValidate extends Validate {
protected $scene = [ protected $scene = [
'addAmercement' => [ 'type', 'money', 'agent_id', 'remarks', 'img' ], 'addAmercement' => [ 'type', 'money', 'agent_id', 'remarks', 'img' ],
'getAmercementInfo' => [ 'id' ,'edit_type'], 'getAmercementInfo' => [ 'id' ],
'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