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
2783d7bc
Commit
2783d7bc
authored
Jan 14, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7b68dfd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
Member.php
application/index/controller/Member.php
+19
-2
No files found.
application/index/controller/Member.php
View file @
2783d7bc
...
@@ -39,7 +39,7 @@ class Member extends Basic{
...
@@ -39,7 +39,7 @@ class Member extends Basic{
/**
/**
* 用户列表
* 用户列表
*
*
pppppp1
* @return \think\Response
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
...
@@ -182,7 +182,23 @@ class Member extends Basic{
...
@@ -182,7 +182,23 @@ class Member extends Basic{
//价格需求2
//价格需求2
if
(((
!
empty
(
$params
[
'price_start'
]))
&&
(
$params
[
'price_start'
]
>=
0
))
&&
((
!
empty
(
$params
[
'price_end'
]))
&&
(
$params
[
'price_end'
]
>=
0
))){
//金额
// if (((!empty($params['price_start'])) && ($params['price_start'] >= 0)) && ((!empty($params['price_end'])) && ($params['price_end'] >= 0))){ //金额
// $where['a.price_demand'] = array( 'between', array( $params['price_start'], $params['price_end'] ) );
// }else{
// //价格需求1
// if (!empty($params['price_type'])) {
// switch ($params['price_type']) {
// case 1 :
// $where['a.price_demand'] = ['<=', 10000];break;
// case 2 :
// $where['a.price_demand'] = ['between', [10000,30000]];break;
// default :
// $where['a.price_demand'] = ['>', 30000];
// }
// }
// }
if
(((
is_numeric
(
$params
[
'price_start'
]))
&&
(
$params
[
'price_start'
]
>=
0
))
&&
((
is_numeric
(
$params
[
'price_end'
]))
&&
(
$params
[
'price_end'
]
>=
0
))){
//金额
$where
[
'a.price_demand'
]
=
array
(
'between'
,
array
(
$params
[
'price_start'
],
$params
[
'price_end'
]
)
);
$where
[
'a.price_demand'
]
=
array
(
'between'
,
array
(
$params
[
'price_start'
],
$params
[
'price_end'
]
)
);
}
else
{
}
else
{
//价格需求1
//价格需求1
...
@@ -322,6 +338,7 @@ class Member extends Basic{
...
@@ -322,6 +338,7 @@ class Member extends Basic{
}
}
}
}
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,
$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.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'
;
a.user_name,a.status,a.first_login_time,a.last_login_time,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