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
b23864fa
Commit
b23864fa
authored
Aug 04, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc后台控制
parent
b79786c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Member.php
application/index/controller/Member.php
+9
-1
No files found.
application/index/controller/Member.php
View file @
b23864fa
...
@@ -47,6 +47,7 @@ class Member extends Basic{
...
@@ -47,6 +47,7 @@ class Member extends Basic{
$where
=
[];
$where
=
[];
$type
=
0
;
$type
=
0
;
$if_search_user
=
false
;
//APP状态
//APP状态
if
(
!
empty
(
$params
[
'activate'
])
&&
$params
[
'activate'
]
!=
-
1
)
{
if
(
!
empty
(
$params
[
'activate'
])
&&
$params
[
'activate'
]
!=
-
1
)
{
...
@@ -61,11 +62,13 @@ class Member extends Basic{
...
@@ -61,11 +62,13 @@ class Member extends Basic{
//客户手机号
//客户手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
if
(
!
empty
(
$params
[
'phone'
]))
{
$if_search_user
=
true
;
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
}
}
if
(
!
empty
(
$params
[
'user_nick'
]))
{
if
(
!
empty
(
$params
[
'user_nick'
]))
{
$if_search_user
=
true
;
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
$where
[
'a.user_name'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_nick'
]
.
'%'
];
$where
[
'a.user_name'
]
=
[
'LIKE'
,
'%'
.
$params
[
'user_nick'
]
.
'%'
];
}
}
...
@@ -120,6 +123,7 @@ class Member extends Basic{
...
@@ -120,6 +123,7 @@ class Member extends Basic{
//客户编号
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
if
(
!
empty
(
$params
[
'id'
]))
{
$if_search_user
=
true
;
$where
[
'a.id'
]
=
$params
[
'id'
];
$where
[
'a.id'
]
=
$params
[
'id'
];
}
}
...
@@ -265,7 +269,11 @@ class Member extends Basic{
...
@@ -265,7 +269,11 @@ 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
;
$is_show
=
$clientService
->
dialTotal
(
$v
[
"id"
]);
$is_show
=
true
;
if
(
$if_search_user
==
false
){
$is_show
=
$clientService
->
dialTotal
(
$v
[
"id"
]);
}
if
(
$is_show
)
{
if
(
$is_show
)
{
array_push
(
$list
,
$data_list
[
$k
]);
array_push
(
$list
,
$data_list
[
$k
]);
}
}
...
...
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