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
d148021b
Commit
d148021b
authored
Aug 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc后台客户列表添加判断是否收藏字段
parent
3ed1496e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Member.php
application/index/controller/Member.php
+18
-0
No files found.
application/index/controller/Member.php
View file @
d148021b
...
@@ -4,6 +4,7 @@ namespace app\index\controller;
...
@@ -4,6 +4,7 @@ namespace app\index\controller;
use
app\api_broker\service\ClientService
;
use
app\api_broker\service\ClientService
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\ACollectUser
;
use
app\model\GOperatingRecords
;
use
app\model\GOperatingRecords
;
use
app\model\Users
;
use
app\model\Users
;
use
app\model\UPhoneFollowPp
;
use
app\model\UPhoneFollowPp
;
...
@@ -287,6 +288,21 @@ class Member extends Basic{
...
@@ -287,6 +288,21 @@ class Member extends Basic{
foreach
(
$data_list
as
$k
=>
$v
)
{
foreach
(
$data_list
as
$k
=>
$v
)
{
$data_list
[
$k
][
'user_phone'
]
=
hide_customer_phone
(
$data_list
[
$k
][
'user_phone'
]);
$data_list
[
$k
][
'user_phone'
]
=
hide_customer_phone
(
$data_list
[
$k
][
'user_phone'
]);
$data_list
[
$k
][
'current_agent_id'
]
=
$this
->
userId
;
$data_list
[
$k
][
'current_agent_id'
]
=
$this
->
userId
;
//是否被收藏
$data_list
[
$k
][
"is_collect"
]
=
2
;
if
(
$params
[
"agent_id"
]
&&
$params
[
"user_id"
]){
//先判断是否已经存在数据
$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_list
[
$k
][
"is_collect"
]
=
1
;
}
}
$is_show
=
true
;
$is_show
=
true
;
if
(
$if_search_user
==
false
){
if
(
$if_search_user
==
false
){
$is_show
=
$clientService
->
dialTotal
(
$v
[
"id"
]);
$is_show
=
$clientService
->
dialTotal
(
$v
[
"id"
]);
...
@@ -296,6 +312,8 @@ class Member extends Basic{
...
@@ -296,6 +312,8 @@ class Member extends Basic{
array_push
(
$list
,
$data_list
[
$k
]);
array_push
(
$list
,
$data_list
[
$k
]);
}
}
}
}
$data
[
'list'
]
=
$list
;
$data
[
'list'
]
=
$list
;
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
,
$type
);
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
,
$type
);
...
...
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