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
f7146fde
Commit
f7146fde
authored
Jul 11, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否被收藏 用户
parent
275a14d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Broker.php
application/api_broker/controller/Broker.php
+13
-0
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/Broker.php
View file @
f7146fde
...
...
@@ -16,6 +16,7 @@ use app\api_broker\extend\Basic;
use
app\api_broker\service\OrderLogService
;
use
app\model\AAgents
;
use
app\model\ABindingDevice
;
use
app\model\ACollectUser
;
use
app\model\GOperatingRecords
;
use
app\model\NoteLog
;
use
app\model\UPhoneFollowPp
;
...
...
@@ -478,6 +479,18 @@ class Broker extends Basic
$data
[
'user_date'
]
=
$orderLog
->
selectListByUserId
(
$user_id
,
''
);
$data
[
'user_history'
]
=
$records_result
;
$data
[
'agent_path'
]
=
AGENTHEADERIMGURL
;
//是否被收藏
$data
[
"is_collect"
]
=
2
;
//先判断是否已经存在数据
$field
=
'id,status'
;
$get_params
[
'agents_id'
]
=
$params
[
"agent_id"
];
$get_params
[
'user_id'
]
=
$params
[
"user_id"
];
$collect_house
=
new
ACollectUser
();
$res
=
$collect_house
->
getCollectUser
(
$field
,
$get_params
);
if
(
$res
&&
(
$res
[
0
][
'status'
]
==
1
)){
//如果存在
$data
[
"is_collect"
]
=
1
;
}
return
$this
->
response
(
"200"
,
"success!"
,
$data
);
}
...
...
application/route.php
View file @
f7146fde
...
...
@@ -407,7 +407,7 @@ Route::group('broker', [
'labelEdit'
=>
[
'api_broker/label/index'
,
[
'method'
=>
'get|post'
]
],
//编辑标签
'getLabelsList'
=>
[
'api_broker/label/getLabelsList'
,
[
'method'
=>
'get'
]
],
//标签列表
'add_phone_follow_up'
=>
[
'api_broker/broker/add_phone_follow_up'
,
[
'method'
=>
'get|post'
]
],
//新增-客户电话跟进
'useraction_search'
=>
[
'api_broker/broker/useraction_search'
,
[
'method'
=>
'get|post'
]
],
//
新增-
客户电话跟进
'useraction_search'
=>
[
'api_broker/broker/useraction_search'
,
[
'method'
=>
'get|post'
]
],
//客户电话跟进
'vip'
=>
[
'api_broker/broker/vip'
,
[
'method'
=>
'get|post'
]
],
'userStateSearch'
=>
[
'api_broker/broker/userStateSearch'
,
[
'method'
=>
'get|post'
]
],
//新增-客户电话跟进
'user_search'
=>
[
'api_broker/broker/user_search'
,
[
'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