admin_transfer_310

This commit is contained in:
dengbw
2022-03-10 10:15:45 +08:00
parent 82a9cf1c75
commit fb5948708b
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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 '<br>本次更新客户线下来源完成了:';
+5 -1
View File
@@ -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;
}