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
1daf5766
Commit
1daf5766
authored
May 13, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户修改
parent
78ef509b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
13 deletions
+29
-13
Member.php
application/index/controller/Member.php
+29
-13
No files found.
application/index/controller/Member.php
View file @
1daf5766
...
...
@@ -267,11 +267,11 @@ class Member extends Basic{
}
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
$if_search_user
=
false
;
$where
[
'a.id'
]
=
$params
[
'id'
];
unset
(
$where
[
'a.create_time'
]);
}
//
if (!empty($params['id'])) {
//
$if_search_user = false;
//
$where['a.id'] = $params['id'];
//
unset($where['a.create_time']);
//
}
//客户姓名
if
(
!
empty
(
$params
[
'user_name'
]))
{
...
...
@@ -288,14 +288,14 @@ class Member extends Basic{
}
//客户手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
$if_search_user
=
false
;
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
if
(
strlen
(
$params
[
'phone'
])
==
11
)
{
unset
(
$where
[
'a.create_time'
]);
}
}
//
if (!empty($params['phone'])) {
//
$if_search_user = false;
//
$where['a.user_phone'] = [ 'LIKE', '%' . $params['phone'] . '%' ];
//
//
if (strlen($params['phone']) == 11) {
//
unset($where['a.create_time']);
//
}
//
}
//是否转介绍搜索 0否 1是 `referrer_source` 引荐人来源 10:会员
if
(
!
empty
(
$params
[
'is_referrer_source_user'
])
&&
$params
[
'is_referrer_source_user'
]
==
1
)
{
...
...
@@ -327,6 +327,22 @@ class Member extends Basic{
}
}
//客户编号
if
(
!
empty
(
$params
[
'id'
]))
{
$where
[
'a.id'
]
=
[];
$where
[
'a.id'
]
=
$params
[
'id'
];
}
//客户手机号
if
(
!
empty
(
$params
[
'phone'
]))
{
if
(
strlen
(
$params
[
'phone'
])
<
4
)
{
return
$this
->
response
(
101
,
'手机号最少输入4位'
);
}
$where
[
'a.user_phone'
]
=
[];
$where
[
'a.user_phone'
]
=
[
'LIKE'
,
'%'
.
$params
[
'phone'
]
.
'%'
];
}
// big_log(json_encode($where));
$fields
=
'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
a.user_name,a.status,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'
;
...
...
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