更新细节
This commit is contained in:
parent
03433f4a5d
commit
fd075dba02
|
@ -613,6 +613,9 @@ class Common extends ApiController
|
||||||
}
|
}
|
||||||
if (empty($param['type'])) {
|
if (empty($param['type'])) {
|
||||||
$this->apiError("审批流程type不能为空");
|
$this->apiError("审批流程type不能为空");
|
||||||
|
}
|
||||||
|
if (!in_array($param['type'], [1, 2, 3])) {
|
||||||
|
$this->apiError("审批流程type错误");
|
||||||
}
|
}
|
||||||
$id = $param['id'];
|
$id = $param['id'];
|
||||||
$type = $param['type'];
|
$type = $param['type'];
|
||||||
|
|
Loading…
Reference in New Issue