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
778d90b0
Commit
778d90b0
authored
Sep 25, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表时间搜索bug
parent
802006de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
User.php
application/api_broker/controller/User.php
+9
-4
No files found.
application/api_broker/controller/User.php
View file @
778d90b0
...
@@ -157,10 +157,15 @@ class User extends Basic
...
@@ -157,10 +157,15 @@ class User extends Basic
if
(
$app_request_source_type
==
1
){
if
(
$app_request_source_type
==
1
){
//'全部客户列表' 需要排除排除纯房东客户
//'全部客户列表' 需要排除排除纯房东客户
$conditions
[
'user_label'
]
=
array
(
"neq"
,
2
);
$conditions
[
'user_label'
]
=
array
(
"neq"
,
2
);
//'全部客户列表' 需要排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
if
(
!
isset
(
$conditions
[
'create_time'
])){
$time_before
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-1 day"
));
//24小时前的时间
//1.'全部客户列表' 需要排除排除保护期内的客户
$conditions
[
'create_time'
]
=
array
(
'not between'
,
array
(
$time_before
,
$time_now
)
);
//2.上面流程如果不存在$conditions['create_time'],说明非精确搜索,排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
$time_before
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"-1 day"
));
//24小时前的时间
$conditions
[
'create_time'
]
=
array
(
'not between'
,
array
(
$time_before
,
$time_now
)
);
}
}
}
}
}
//dump($app_request_source_type);exit;
//dump($app_request_source_type);exit;
...
...
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