修改异常
This commit is contained in:
parent
cebe169a85
commit
45d9e9df3b
|
@ -236,9 +236,11 @@ class Common extends ApiController
|
||||||
if (!in_array($param['check'], [1, 2, 3])) {
|
if (!in_array($param['check'], [1, 2, 3])) {
|
||||||
$this->apiError("审批状态参数错误");
|
$this->apiError("审批状态参数错误");
|
||||||
}
|
}
|
||||||
|
if (in_array($param['check'], [1, 2])) {
|
||||||
if (empty($param['content'])) {
|
if (empty($param['content'])) {
|
||||||
$this->apiError("审批意见不能为空");
|
$this->apiError("审批意见不能为空");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$id = $param['id'];
|
$id = $param['id'];
|
||||||
$type = $param['type'];
|
$type = $param['type'];
|
||||||
$detail = [];
|
$detail = [];
|
||||||
|
|
Loading…
Reference in New Issue