小程序增加访问日志
This commit is contained in:
@@ -15,6 +15,7 @@ class Licheb extends HD_Controller
|
||||
$this->log_file = 'licheb.log';
|
||||
$this->load->model('receiver/receiver_customers_model', 'mdCustomers');
|
||||
$this->load->model("biz/biz_model", 'mdBiz');
|
||||
$this->load->model('biz/biz_visit_log_model');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -232,7 +233,7 @@ class Licheb extends HD_Controller
|
||||
|
||||
if ($visit_count) {//发送短信
|
||||
// b2m_send_sms($value['mobile'], '【好店云】您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~');
|
||||
ems_sms($value['mobile'], '您好,今天共有 '.$visit_count.' 个客户需要回访,客户线索来之不易,请及时跟进~ ');
|
||||
ems_sms($value['mobile'], '您好,今天共有 ' . $visit_count . ' 个客户需要回访,客户线索来之不易,请及时跟进~ ');
|
||||
$log[] = array('id' => $id, 'mobile' => $value['mobile'], 'count' => $visit_count);
|
||||
}
|
||||
}
|
||||
@@ -295,16 +296,16 @@ class Licheb extends HD_Controller
|
||||
if ($biz_id == '1') {
|
||||
continue;
|
||||
}
|
||||
$bizRow = $this->mdBiz->get(['id'=>$biz_id]);
|
||||
$bizRow = $this->mdBiz->get(['id' => $biz_id]);
|
||||
$where_c = array("biz_id in ($biz_id)" => null, 'status' => 0, 'admin_id' => 0);
|
||||
if($bizRow['type']==Biz_model::BIZ_TYPE_4s){
|
||||
if ($bizRow['type'] == Biz_model::BIZ_TYPE_4s) {
|
||||
$where_c['un_lock'] = 1;
|
||||
}
|
||||
$Customers_count = $this->mdCustomers->count($where_c);
|
||||
if ($Customers_count) {
|
||||
//发送短信
|
||||
// b2m_send_sms($value['mobile'], '【好店云】您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!');
|
||||
ems_sms($value['mobile'], '您好,门店有 '.$Customers_count.' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!');
|
||||
ems_sms($value['mobile'], '您好,门店有 ' . $Customers_count . ' 个客户线索尚未分配。请及时到小程序"理车宝-待分配客户”分配给销售顾问跟进。祝您生活愉快!');
|
||||
$log[] = array('id' => $id, 'mobile' => $value['mobile'], 'count' => $Customers_count);
|
||||
}
|
||||
}
|
||||
@@ -320,4 +321,13 @@ class Licheb extends HD_Controller
|
||||
echo json_encode($res_u, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 访问日志入库
|
||||
* @return void
|
||||
*/
|
||||
public function log_add()
|
||||
{
|
||||
$this->biz_visit_log_model->popQueue();
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,7 @@ class Plan extends CI_Controller
|
||||
$plan[] = array('url' => base_url(array('plan', 'licheb', 'visit_sales')), 'interval' => 3);//客户回访顾问统计
|
||||
$plan[] = array('url' => base_url(array('plan', 'licheb', 'visit_sales_sms')), 'interval' => 2);//给销售发送待回访短信
|
||||
$plan[] = array('url' => base_url(array('plan', 'licheb', 'customer_manager_sms')), 'interval' => 2);//给店长发送待分配短信
|
||||
$plan[] = array('url' => base_url(array('plan', 'licheb', 'log_add')), 'interval' => 1);//小程序访问日志
|
||||
$plan[] = array('url' => base_url(array('plan', 'yxcall', 'down_video')), 'interval' => 5); //下载录音文件
|
||||
//$plan[] = array('url' => base_url(array('plan', 'licheb', 'users_log')), 'interval' => 2);//顾问日志
|
||||
//$plan[] = array('url' => base_url(array('plan', 'licheb', 'bizs_log')), 'interval' => 2);//门店日志
|
||||
|
||||
@@ -30,6 +30,7 @@ class Cusorder extends Wxapp
|
||||
|
||||
$this->load->model('app/licheb/app_licheb_users_model', 'app_user_model');
|
||||
$this->load->model("biz/biz_model");
|
||||
$this->load->model('biz/biz_visit_log_model');
|
||||
|
||||
$this->load->library('receiver/customers_entity');
|
||||
$this->load->library('receiver/orders_entity');
|
||||
@@ -541,6 +542,13 @@ class Cusorder extends Wxapp
|
||||
'list' => $lists,
|
||||
'total' => $count
|
||||
];
|
||||
//增加埋点
|
||||
$logData = [
|
||||
'uid' => $this->session['uid'],
|
||||
'biz_id' => $this->biz_id,
|
||||
'title' => '订单列表'
|
||||
];
|
||||
$this->biz_visit_log_model->addDataPushQueue($logData);
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -620,6 +628,13 @@ class Cusorder extends Wxapp
|
||||
$admin_row = $this->app_user_model->get(['id' => $row['admin_id']], 'uname');
|
||||
$data['admin_name'] = $admin_row['uname'];
|
||||
}
|
||||
//增加埋点
|
||||
$logData = [
|
||||
'uid' => $this->session['uid'],
|
||||
'biz_id' => $this->biz_id,
|
||||
'title' => '订单详情'
|
||||
];
|
||||
$this->biz_visit_log_model->addDataPushQueue($logData);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ class Customers extends Wxapp
|
||||
$this->load->library('receiver/customers_entity');
|
||||
$this->load->library('receiver/clues_entity');
|
||||
$this->load->model('app/paic/app_paic_users_model');
|
||||
$this->load->model('biz/biz_visit_log_model');
|
||||
$this->biz_id = $this->get_biz_id();
|
||||
}
|
||||
|
||||
@@ -142,6 +143,13 @@ class Customers extends Wxapp
|
||||
'cf_pid' => $row['cf_pid'],
|
||||
'cf_name' => $paic_user ? $paic_user['name'] : '',
|
||||
];
|
||||
//增加埋点
|
||||
$logData = [
|
||||
'uid' => $this->session['uid'],
|
||||
'biz_id' => $this->biz_id,
|
||||
'title' => '客户详情'
|
||||
];
|
||||
$this->biz_visit_log_model->addDataPushQueue($logData);
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -829,7 +837,13 @@ class Customers extends Wxapp
|
||||
$tag_ids = $this->input_param('tag_ids');//多选客户画像
|
||||
$city_id = $this->input_param('city_id');
|
||||
$county_id = $this->input_param('county_id');
|
||||
|
||||
//增加埋点
|
||||
$logData = [
|
||||
'uid' => $this->session['uid'],
|
||||
'biz_id' => $this->biz_id,
|
||||
'title' => '客户列表'
|
||||
];
|
||||
$this->biz_visit_log_model->addDataPushQueue($logData);
|
||||
!$page && $page = 1;
|
||||
!$size && $size = 10;
|
||||
$show_log = false; //是否获取日志
|
||||
|
||||
Reference in New Issue
Block a user