From 905aff8c8ab64cc97b81d468752e1f2d2762e47d Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 4 Nov 2023 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=E8=B4=A6=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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/controller/OaApprove.php b/app/api/controller/OaApprove.php index 8caab4a..b9471d4 100644 --- a/app/api/controller/OaApprove.php +++ b/app/api/controller/OaApprove.php @@ -256,17 +256,17 @@ class OaApprove extends ApiController if (empty($param['type'])) { $this->apiError("审批流程类型不能为空"); } - //1审核结束 2下一审批人 - if (empty($param['check_node'])) { - $this->apiError("审批节点不能为空"); - } - // 1同意 2拒绝 + // 1同意 2拒绝 3撤销 if (empty($param['check'])) { $this->apiError("审批状态不能为空"); } if (empty($param['content'])) { $this->apiError("审批内容不能为空"); } + //1审核结束 2下一审批人 + if (($param['check'] != 3) && empty($param['check_node'])) { + $this->apiError("审批节点不能为空"); + } $id = $param['id']; $type = $param['type'];