From 45d9e9df3bb0ce5329a8a9d62b992efbbd5c8135 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 21 Nov 2023 17:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Common.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Common.php b/app/api/controller/Common.php index 86c564a..fe8f125 100644 --- a/app/api/controller/Common.php +++ b/app/api/controller/Common.php @@ -236,8 +236,10 @@ class Common extends ApiController if (!in_array($param['check'], [1, 2, 3])) { $this->apiError("审批状态参数错误"); } - if (empty($param['content'])) { - $this->apiError("审批意见不能为空"); + if (in_array($param['check'], [1, 2])) { + if (empty($param['content'])) { + $this->apiError("审批意见不能为空"); + } } $id = $param['id']; $type = $param['type'];