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
7197a280
Commit
7197a280
authored
Apr 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create_time
parent
b521ed73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+4
-3
No files found.
application/task/controller/PrivacyNumber.php
View file @
7197a280
...
...
@@ -183,13 +183,14 @@ class PrivacyNumber
}
$where
[
'call_time'
]
=
[
'BETWEEN'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
]];
$fields
=
'id,call_id,call_time,voice_file,type,record_down,mp3_url'
;
$fields
=
'id,call_id,call_time,voice_file,type,record_down,mp3_url
,create_time
'
;
$where
[
'time'
]
=
[
'>'
,
0
];
$where
[
'type'
]
=
[
'>'
,
0
];
$down_data
=
$this
->
m_secret_report
->
secretReportAll
(
$fields
,
$where
);
$is_down
=
''
;
foreach
(
$down_data
as
$k
=>
$v
)
{
$create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'create_time'
]));
if
(
$v
[
'type'
]
==
1
)
{
/*阿里云音频下载*/
$result_data
=
PlsDemo
::
queryRecordFileDownloadUrl
(
$v
[
'call_id'
],
$v
[
'call_time'
]);
...
...
@@ -202,7 +203,7 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
dat
e
);
$is_down
=
down_file
(
$result_data
->
DownloadUrl
,
PHONE_VOICE
,
$file_name
,
$
create_tim
e
);
}
}
elseif
(
$v
[
'type'
]
==
2
)
{
/*容联云音频下载*/
...
...
@@ -213,7 +214,7 @@ class PrivacyNumber
$file_name
=
explode
(
'/'
,
$v
[
'voice_file'
]);
$file_name
=
$file_name
[
1
];
}
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
dat
e
);
$is_down
=
down_file
(
$v
[
'mp3_url'
],
PHONE_VOICE
,
$file_name
,
$
create_tim
e
);
}
}
...
...
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