From b43acb53b1f48861344a6c66cf7db942131d8d3a Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 18 Nov 2023 17:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=89=B9=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Common.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Common.php b/app/api/controller/Common.php index d0daa23..7690faa 100644 --- a/app/api/controller/Common.php +++ b/app/api/controller/Common.php @@ -605,8 +605,17 @@ class Common extends ApiController } //获取审核流程节点 - public function get_flow_nodes($id=0,$type=1) + public function get_flow_nodes() { + $param = get_params(); + if (empty($param['id'])) { + $this->apiError("审批流程id不能为空"); + } + if (empty($param['type'])) { + $this->apiError("审批流程type不能为空"); + } + $id = $param['id']; + $type = $param['type']; $flows = Db::name('FlowStep')->where(['action_id'=>$id,'type'=>$type,'delete_time'=>0])->order('sort asc')->select()->toArray(); foreach ($flows as $key => &$val) { $user_id_info = Db::name('Admin')->field('id,name,thumb')->where('id','in',$val['flow_uids'])->select()->toArray();