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
84ccc26e
Commit
84ccc26e
authored
May 05, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
<>
parent
b356a13a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+6
-3
No files found.
application/task/controller/PrivacyNumber.php
View file @
84ccc26e
...
...
@@ -144,8 +144,11 @@ class PrivacyNumber
if
(
empty
(
$param
[
'date'
])
&&
$is_today
)
{
$date
=
date
(
'Y-m-d H:i:s'
,
time
()
-
5400
);
//录音生成时间15分钟左右
$where
[
'create_time'
]
=
[
'<'
,
$date
];
$where
[
'create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-15 day"
)),
$date
]];
}
else
{
$where
[
'create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d H:i:s'
,
strtotime
(
"-15 day"
)),
$param
[
'date'
]]];
}
$fields
=
'id,call_id,call_time,voice_file,type,record_down,mp3_url,create_time'
;
$where
[
'time'
]
=
[
'>'
,
0
];
$where
[
'type'
]
=
[
'>'
,
0
];
...
...
@@ -166,8 +169,8 @@ class PrivacyNumber
/*阿里云音频下载*/
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
}
catch
(
\Exception
$e
)
{
Log
::
write
(
$e
->
getMessage
(),
'voice_down_getVoiceUrl_error
'
);
//记录日志
return
;
Log
::
write
(
$e
->
getMessage
(),
'voice_down_getVoiceUrl_error
_id'
.
$v
[
'id'
]
);
//记录日志
continue
;
}
if
(
isset
(
$result_data
->
Message
)
&&
$result_data
->
Message
==
'OK'
)
{
...
...
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