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;