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
00e7a0a4
Commit
00e7a0a4
authored
Apr 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除查询
parent
e6967f82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
AliYunSecretReport.php
application/model/AliYunSecretReport.php
+2
-2
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+8
-5
No files found.
application/model/AliYunSecretReport.php
View file @
00e7a0a4
...
...
@@ -63,10 +63,10 @@ class AliYunSecretReport extends BaseModel
}
if
(
!
empty
(
$start_date
)
&&
!
empty
(
$end_date
))
{
$where
[
'call_time'
]
=
[
'between
time'
,
$start_date
.
' 00:00:00'
,
$end_date
.
' 23:59:59'
];
$where
[
'call_time'
]
=
[
'between
'
,
[
$start_date
.
' 00:00:00'
,
$end_date
.
' 23:59:59'
]
];
}
else
{
$date
=
date
(
'Y-m-d'
);
$where
[
'call_time'
]
=
[
'between
time
'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
]];
$where
[
'call_time'
]
=
[
'between'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
]];
}
$where
[
'time'
]
=
[
'>'
,
0
];
...
...
application/task/controller/PrivacyNumber.php
View file @
00e7a0a4
...
...
@@ -135,11 +135,14 @@ class PrivacyNumber
if
(
$call_time
>
0
)
{
$key
=
'call_back_'
.
$v
[
'phone_no'
]
.
'_'
.
$v
[
'peer_no'
]
.
'_'
.
date
(
'Y-m-d'
);
$time
=
$this
->
redis
->
get
(
$key
);
if
(
empty
(
$time
))
{
$end_date
=
date
(
'Y-m-d H:i:s'
,
time
());
$start_date
=
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-1 day"
));
$num
=
$this
->
m_secret_report
->
getCallNumber
(
$post_data
[
0
][
'phone_no'
],
$post_data
[
0
][
'peer_no'
],
$start_date
,
$end_date
);
}
else
{
// if (empty($time)) {
// $end_date = date('Y-m-d', time());
// $start_date = date('Y-m-d', strtotime("-1 day"));
// $num = $this->m_secret_report->getCallNumber($post_data[0]['phone_no'], $post_data[0]['peer_no'], $start_date, $end_date);
// } else {
// $num = 1;
// }
if
(
!
empty
(
$time
))
{
$num
=
1
;
}
...
...
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