From 980d1ce1569c1c07cf26cbeca9f3c7045822486a Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Tue, 15 Aug 2023 09:24:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=A1=E6=89=B9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E3=80=82=E5=A4=9A=E4=BA=BA=E4=BC=9A=E7=AD=BE=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E5=AE=A1=E6=89=B9=E6=98=AF=20=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E9=A2=86=E5=AF=BC=E6=88=96=E8=80=85=E6=98=AF=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E9=83=A8=E9=97=A8=E9=A2=86=E5=AF=BC=E5=B0=B1=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E6=89=BE=E4=B8=8D=E5=88=B0=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E7=9A=84=E5=AE=A1=E6=89=B9=E4=BA=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Index.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 429c760..afc2ad0 100644 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -379,7 +379,15 @@ class Index extends BaseController $next_step = Db::name('FlowStep')->where(['action_id'=>$id,'type'=>$type,'sort'=>($detail['check_step_sort']+1),'delete_time'=>0])->find(); if($next_step){ //存在下一步审核 - $param['check_admin_ids'] = $next_step['flow_uids']; + if($next_step['flow_type'] == 1){ + $param['check_admin_ids'] = get_department_leader($detail['admin_id']); + } + else if($next_step['flow_type'] == 2){ + $param['check_admin_ids'] = get_department_leader($detail['admin_id'],1); + } + else{ + $param['check_admin_ids'] = $next_step['flow_uids']; + } $param['check_step_sort'] = $detail['check_step_sort']+1; $param['check_status'] = 1; }