Commit 3b08bf6f authored by hujun's avatar hujun

status

parent df56a23d
......@@ -344,19 +344,19 @@ class Cost extends Basic
$code = 101;
$params = &$this->params;
if (empty($params['id'] && empty($params['id_array']))) {
return $this->response($code, '参数错误');
if (empty($params['id']) && empty($params['id_array'])) {
return $this->response($code, '参数错误1');
}
if (isset($params['id_array'])) {
if (empty($params['id_array'])) {
return $this->response($code, '参数错误');
return $this->response($code, '参数错误2');
}
}
if (isset($params['id'])) {
if (empty($params['id'])) {
return $this->response($code, '参数错误');
return $this->response($code, '参数错误3');
}
}
......@@ -379,7 +379,7 @@ class Cost extends Basic
$service = new CostService();
if (isset($params['id_array'])) {
if (!in_array($params['check_status'], [1,2,5])) {
if (!in_array($params['check_status'], [2,3,5])) {
return $this->response($code, '不能批量审核');
}
......
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