Commit f66d76eb authored by zhuwei's avatar zhuwei

客户动态

parent 61405616
...@@ -759,5 +759,36 @@ class User extends Basic ...@@ -759,5 +759,36 @@ class User extends Basic
} }
/**
* 订单动态
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function userLog(){
$params = $this->params;
/* $params = array(
"user_id" => 828,
"type" => 1,
);*/
if (!isset($params['user_id']) || !isset($params['type'])) {
return $this->response("101", "参数不全");
}
$user_id = $params['user_id'];
$type = $params['type'];
$result = $this->userLogService->userLog($user_id,$this->siteId,$type);
if(count($result) > 0){
return $this->response("200", "success!", $result);
}else{
return $this->response("101", "请求数据为空");
}
}
} }
\ No newline at end of file
...@@ -220,7 +220,7 @@ class UserLogService ...@@ -220,7 +220,7 @@ class UserLogService
{ {
//查询客户详情 //查询客户详情
$field = 'id as user_id,user_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label'; $field = 'id as user_id,user_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label,industry_type,price_demand,area_demand';
$result = $this->userModel->getUserDetailStreamline($user_id,$field); $result = $this->userModel->getUserDetailStreamline($user_id,$field);
if (count($result) <= 0) { if (count($result) <= 0) {
......
...@@ -753,8 +753,9 @@ Route::group('broker', [ ...@@ -753,8 +753,9 @@ Route::group('broker', [
'adjustment' => ['api_broker/PayLog/adjustment', ['method' => 'get|post']], 'adjustment' => ['api_broker/PayLog/adjustment', ['method' => 'get|post']],
//原生客户详情 //原生客户详情
'getUserLabels' => ['api_broker/User/getUserLabels', ['method' => 'get|post']],//获取电话跟进标签列表 'getUserLabels' => [ 'api_broker/User/getUserLabels', [ 'method' => 'get|post' ] ],//获取电话跟进标签列表
'userDetail' => ['api_broker/User/userDetail', ['method' => 'get|post']],// 'userDetail' => [ 'api_broker/User/userDetail', [ 'method' => 'get|post' ] ],//
'userLog' => [ 'api_broker/User/userLog', [ 'method' => 'get|post' ] ],//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment