diff --git a/app/api/controller/Common.php b/app/api/controller/Common.php index b4af0d4..3ba08cc 100644 --- a/app/api/controller/Common.php +++ b/app/api/controller/Common.php @@ -613,6 +613,9 @@ class Common extends ApiController } if (empty($param['type'])) { $this->apiError("审批流程type不能为空"); + } + if (!in_array($param['type'], [1, 2, 3])) { + $this->apiError("审批流程type错误"); } $id = $param['id']; $type = $param['type'];