From cebe169a858b0fc9c97019f35d018c2f96acba5a Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 20 Nov 2023 17:31:05 +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 532484f..86c564a 100644 --- a/app/api/controller/Common.php +++ b/app/api/controller/Common.php @@ -235,6 +235,9 @@ class Common extends ApiController } if (!in_array($param['check'], [1, 2, 3])) { $this->apiError("审批状态参数错误"); + } + if (empty($param['content'])) { + $this->apiError("审批意见不能为空"); } $id = $param['id']; $type = $param['type'];