From fd075dba023ee3f1f03596990cae263f567cd44b Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 20 Nov 2023 11:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Common.php | 3 +++ 1 file changed, 3 insertions(+) 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'];