From d157007b35a107f8df1427bbffe682da8c7ee44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Wed, 8 Mar 2023 10:20:58 +0800 Subject: [PATCH] bug fix --- application/crm/controller/Business.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/crm/controller/Business.php b/application/crm/controller/Business.php index 2f1dd4f..1d271cf 100644 --- a/application/crm/controller/Business.php +++ b/application/crm/controller/Business.php @@ -410,11 +410,11 @@ class Business extends ApiCommon if (($examineStatus != false && $examineStatus != 'false') || $examineStatus == 1) { // 审核判断(是否有符合条件的审批流) $examineFlowModel = new \app\admin\model\ExamineFlow(); - if (!$examineFlowModel->checkExamine($userInfo['user_id'], 'crm_business')) { + if (!$examineFlowModel->checkExamine($userInfo['id'], 'crm_business')) { return '暂无审批人,无法创建'; } //添加审批相关信息 - $examineFlowData = $examineFlowModel->getFlowByTypes($userInfo['user_id'], 'crm_business'); + $examineFlowData = $examineFlowModel->getFlowByTypes($userInfo['id'], 'crm_business'); if (!$examineFlowData) { return '无可用审批流,请联系管理员'; } @@ -422,7 +422,7 @@ class Business extends ApiCommon //获取审批人信息 if ($examineFlowData['config'] == 1) { //固定审批流 - $nextStepData = $examineStepModel->nextStepUser($userInfo['user_id'], $examineFlowData['flow_id'], 'crm_business', 0, 0, 0); + $nextStepData = $examineStepModel->nextStepUser($userInfo['id'], $examineFlowData['flow_id'], 'crm_business', 0, 0, 0); $next_user_ids = arrayToString($nextStepData['next_user_ids']) ?: ''; $check_user_id = $next_user_ids ?: []; $data['order_id'] = 1; -- 2.36.3