This commit is contained in:
weiz 2024-05-28 17:43:02 +08:00
parent 1bf93d8054
commit 92b3cd5b69
2 changed files with 8 additions and 2 deletions

View File

@ -471,7 +471,10 @@
return $this->fail('审核参数错误'); return $this->fail('审核参数错误');
} }
if(empty($params['content'])){ if(empty($params['content'])){
return $this->fail('请填写审核意见'); $mes = match ($params['check']){
1=>'请填写审核意见',2=>'请填写审核意见',3=>'请填写撤销理由'
};
return $this->fail($mes);
} }
$data = Db::name('oa_expense')->where('id',$params['id'])->find(); $data = Db::name('oa_expense')->where('id',$params['id'])->find();
if(empty($data)){ if(empty($data)){

View File

@ -462,7 +462,10 @@
return $this->fail('审核参数错误'); return $this->fail('审核参数错误');
} }
if(empty($params['content'])){ if(empty($params['content'])){
return $this->fail('请填写审核意见'); $mes = match ($params['check']){
1=>'请填写审核意见',2=>'请填写审核意见',3=>'请填写撤销理由'
};
return $this->fail($mes);
} }
$data = Db::name('oa_invoice')->where('id',$params['id'])->find(); $data = Db::name('oa_invoice')->where('id',$params['id'])->find();
if(empty($data)){ if(empty($data)){