From 7676a83e96b727af794a4d4a7dc149a13c1319c1 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 4 Nov 2023 16:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=89=B9=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/OaApprove.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index b9471d4..49eeff2 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -260,13 +260,15 @@ class OaApprove extends ApiController if (empty($param['check'])) { $this->apiError("审批状态不能为空"); } - if (empty($param['content'])) { - $this->apiError("审批内容不能为空"); - } - //1审核结束 2下一审批人 - if (($param['check'] != 3) && empty($param['check_node'])) { - $this->apiError("审批节点不能为空"); - } + if ($param['check'] != 3) { + if (empty($param['content'])) { + $this->apiError("审批内容不能为空"); + } + //1审核结束 2下一审批人 + if (empty($param['check_node'])) { + $this->apiError("审批节点不能为空"); + } + } $id = $param['id']; $type = $param['type'];