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
a8e88c63
Commit
a8e88c63
authored
Jan 04, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电话跟进
parent
f66d76eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
User.php
application/api_broker/controller/User.php
+30
-4
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/User.php
View file @
a8e88c63
...
@@ -760,11 +760,8 @@ class User extends Basic
...
@@ -760,11 +760,8 @@ class User extends Basic
/**
/**
*
订单
动态
*
客户
动态
* @return \think\Response
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
userLog
(){
public
function
userLog
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
...
@@ -789,6 +786,34 @@ class User extends Basic
...
@@ -789,6 +786,34 @@ class User extends Basic
}
}
/**
* 电话跟进
* @return \think\Response
*/
public
function
followUpLog
(){
$params
=
$this
->
params
;
/* $params = array(
"user_id" => 828,
"page_no" => 1,
"page_size" => 15
);*/
if
(
!
isset
(
$params
[
'user_id'
]))
{
return
$this
->
response
(
"101"
,
"参数不全"
);
}
$user_id
=
$params
[
'user_id'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
userLogService
->
phoneFollowUp
(
$user_id
,
$this
->
siteId
,
$pageNo
,
$pageSize
);
if
(
count
(
$result
)
>
0
){
return
$this
->
response
(
"200"
,
"success!"
,
$result
);
}
else
{
return
$this
->
response
(
"101"
,
"请求数据为空"
);
}
}
}
}
\ No newline at end of file
application/route.php
View file @
a8e88c63
...
@@ -756,7 +756,7 @@ Route::group('broker', [
...
@@ -756,7 +756,7 @@ Route::group('broker', [
'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'
]
],
//
'userLog'
=>
[
'api_broker/User/userLog'
,
[
'method'
=>
'get|post'
]
],
//
'followUpLog'
=>
[
'api_broker/User/followUpLog'
,
[
'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