|
|
|
@ -124,9 +124,9 @@ class Customer extends ApiCommon
|
|
|
|
|
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'];
|
|
|
|
|
$customerCheck = db('crm_customer_check')->where(['customer_id' => $param['id']])->where(['check_status' => 0])->find();
|
|
|
|
|
if (!empty($customerCheck)) {
|
|
|
|
|
$data['flow_id'] = $customerCheck['flow_id'];
|
|
|
|
|
}
|
|
|
|
|
return resultArray(['data' => $data]);
|
|
|
|
|
}
|
|
|
|
@ -888,7 +888,7 @@ class Customer extends ApiCommon
|
|
|
|
|
*/
|
|
|
|
|
public function top()
|
|
|
|
|
{
|
|
|
|
|
$customerModel=model('Customer');
|
|
|
|
|
$customerModel = model('Customer');
|
|
|
|
|
$param = $this->param;
|
|
|
|
|
$userInfo = $this->userInfo;
|
|
|
|
|
$param['create_role_id'] = $userInfo['id'];
|
|
|
|
|