From b352730ae9c9bcc6a77124e424cde36ea3b5ebc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=86=E5=A4=A9=E7=9A=84=E8=9D=88=E8=9D=88?= <632522043@qq.com> Date: Tue, 22 Feb 2022 09:19:39 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8A=20=E4=BF=AE=E5=A4=8D=20I47E24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/adaptive/Info.php | 12 ++++++++---- src/service/method/Jwt.php | 3 ++- src/service/method/Tpl.php | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/adaptive/Info.php b/src/adaptive/Info.php index 8152d38..46f1b10 100644 --- a/src/adaptive/Info.php +++ b/src/adaptive/Info.php @@ -154,7 +154,7 @@ class Info * @param int $run_id 运行的id * @param string $wf_type 业务表名 */ - public static function workflowInfo($wf_fid, $wf_type, $userinfo) + public static function workflowInfo($wf_fid, $wf_type, $userinfo,$sup=0) { $workflow = []; //根据表信息,判断当前流程是否还在运行 @@ -195,9 +195,13 @@ class Info } } } - if (!isset($info)) { - return -1; - } + if($sup==1){ + $info = $info_list[0]; + }else{ + if (!isset($info)) { + return -1; + } + } } //4.0版本新增查找是否有代理审核人员,并给与权限,权限转换 diff --git a/src/service/method/Jwt.php b/src/service/method/Jwt.php index 1fe138a..5554649 100644 --- a/src/service/method/Jwt.php +++ b/src/service/method/Jwt.php @@ -47,8 +47,9 @@ class Jwt if ($data == 2) { return ''; } + $sup = $_GET['sup'] ?? ''; $userinfo = ['uid' => unit::getuserinfo('uid'), 'role' => unit::getuserinfo('role')]; - return Info::workflowInfo($wf_fid, $wf_type, $userinfo); + return Info::workflowInfo($wf_fid, $wf_type, $userinfo,$sup); } //流程发起 if ($act == 'start') { diff --git a/src/service/method/Tpl.php b/src/service/method/Tpl.php index 8853e88..62e47fe 100644 --- a/src/service/method/Tpl.php +++ b/src/service/method/Tpl.php @@ -50,8 +50,9 @@ class Tpl if ($data == 2) { return ''; } + $sup = $_GET['sup'] ?? ''; $userinfo = ['uid' => unit::getuserinfo('uid'), 'role' => unit::getuserinfo('role')]; - return Info::workflowInfo($wf_fid, $wf_type, $userinfo); + return Info::workflowInfo($wf_fid, $wf_type, $userinfo,$sup); } //流程发起 if ($act == 'start') { -- Gitee