Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
f66d76eb
Commit
f66d76eb
authored
Jan 04, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户动态
parent
61405616
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
User.php
application/api_broker/controller/User.php
+32
-0
UserLogService.php
application/index/service/UserLogService.php
+1
-1
route.php
application/route.php
+3
-2
No files found.
application/api_broker/controller/User.php
View file @
f66d76eb
...
@@ -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
application/index/service/UserLogService.php
View file @
f66d76eb
...
@@ -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
)
{
...
...
application/route.php
View file @
f66d76eb
...
@@ -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'
]
],
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment