From fb5948708b99a124dbe54e641922cd7cae590b5d Mon Sep 17 00:00:00 2001 From: dengbw Date: Thu, 10 Mar 2022 10:15:45 +0800 Subject: [PATCH] admin_transfer_310 --- api/controllers/plan/Temp.php | 2 +- api/controllers/wxapp/licheb/Customers.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/controllers/plan/Temp.php b/api/controllers/plan/Temp.php index 73625b13..0b92bbec 100644 --- a/api/controllers/plan/Temp.php +++ b/api/controllers/plan/Temp.php @@ -33,7 +33,7 @@ class Temp extends HD_Controller !$param['page'] && $param['page'] = 1; $counts = intval($param['counts']); ob_start(); //打开缓冲区 - $where = array("cf_clues !=''" => null, 'of_id' => 0); + $where = array("cf_clues !=''" => null); $res = $this->mdCustomers->select($where, 'id ASC', $param['page'], $param['size'], 'id,cf_clues'); if (!$res) { echo '
本次更新客户线下来源完成了:'; diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index dae86292..98e14ab5 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -198,6 +198,7 @@ class Customers extends Wxapp $buy_time = $this->input_param('buy_time'); //预计购车时间 $of_id = $this->input_param('of_id'); //线下来源一级 $of2_id = $this->input_param('of2_id'); //线下来源一级 + $status = intval($this->input_param('status')); //状态 if (!mobile_valid($mobile)) throw new Exception('请输入正确的手机号码', ERR_PARAMS_ERROR); if (!$name || !$car_id || !$v_id || !$color_id) { @@ -242,8 +243,12 @@ class Customers extends Wxapp 'cf_title' => '自有资源', 'car_json' => json_encode($car_json, JSON_UNESCAPED_UNICODE), 'cont_time' => date('Y-m-d H:i:s'), + 'status' => $status, 'c_time' => time() ]; + if ($status == 1) {//到店客户 到店次数默认1 + $add_data['a_num'] = 1; + } $biz_row['city_id'] && $add_data['city_id'] = $biz_row['city_id']; $biz_row['county_id'] && $add_data['county_id'] = $biz_row['county_id']; $buy_time && $add_data['buy_time'] = $buy_time; @@ -761,7 +766,6 @@ class Customers extends Wxapp return ''; } $group_id = $this->session['group_id']; - $group_id = 3; if ($params['cf_title'] == '自有资源' && ($group_id == 2 || $group_id == 3)) {//2店长,3老板显示全部电话 return $mobile; }