From 7148df93bf90f8e780a0c0c57e46090ecb4d2760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com> Date: Tue, 7 Mar 2023 10:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/crm/controller/Customer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/crm/controller/Customer.php b/application/crm/controller/Customer.php index eaaed42..6e52744 100644 --- a/application/crm/controller/Customer.php +++ b/application/crm/controller/Customer.php @@ -123,6 +123,11 @@ class Customer extends ApiCommon $authData['dataAuth'] = (int)0; return resultArray(['data' => $authData]); } + // 判断是否有客户捞取审批 + $customerCheck = db('crm_customer_check')->where(['customer_id' => $param['id']])->where(['check_status'=>0])->find(); + if(!$customerCheck){ + $data['flow_id']=$customerCheck['flow_id']; + } return resultArray(['data' => $data]); }