Commit 4f7b4c08 authored by hujun's avatar hujun

审核限制

parent d5c9607d
...@@ -320,6 +320,10 @@ class Cost extends Basic ...@@ -320,6 +320,10 @@ class Cost extends Basic
$service = new CostService(); $service = new CostService();
if (isset($params['id_array'])) { if (isset($params['id_array'])) {
if (!in_array($params['check_status'], [1,2,5])) {
return $this->response($code, '不能批量审核');
}
$result = $service->checkArray($params, $this->userId); $result = $service->checkArray($params, $this->userId);
} else { } else {
$result = $service->check($params, $this->userId); $result = $service->check($params, $this->userId);
......
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