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
e4b084f2
Commit
e4b084f2
authored
Oct 16, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保护期优化
parent
3e171822
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Member.php
application/index/controller/Member.php
+4
-4
No files found.
application/index/controller/Member.php
View file @
e4b084f2
...
...
@@ -105,12 +105,12 @@ class Member extends Basic{
$where
[
'a.create_time'
]
=
[
'between time'
,
[
$params
[
'start_date'
]
.
' 00:00:00'
,
$params
[
'end_date'
]
.
' 23:59:59'
]];
}
else
{
if
(
empty
(
$params
[
'id'
])
&&
empty
(
$params
[
'phone'
]))
{
// $time_
= date('Y-m-d H:i:s', strtotime("-1 day"));
//
$where['a.create_time'] = array( 'lt', $time_ );
//$time_
= date('Y-m-d H:i:s', strtotime("-1 day"));
//
$where['a.create_time'] = array( 'lt', $time_ );
//排除排除保护期内的客户
$time_now
=
date
(
'Y-m-d H:i:s'
);
//当前时间
$time_after
=
date
(
"Y-m-d H:i:s"
,
strtotime
(
"+1 day"
));
//24小时前的时间
$where
[
'a.protect_time'
]
=
array
(
'not between'
,
array
(
$time_now
,
$time_after
)
);
//protect_time 将截止日期大于当前时间的数据排除掉
$where
[
'a.protect_time'
]
=
array
(
'lt'
,
$time_now
);
}
}
...
...
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