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'];