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
9ff95082
Commit
9ff95082
authored
Apr 08, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步代码
parent
4ba8b958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+5
-4
No files found.
application/task/controller/PrivacyNumber.php
View file @
9ff95082
...
...
@@ -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
);
}
}
...
...
@@ -530,7 +531,7 @@ class PrivacyNumber
$where_agent
[
'time'
]
=
$where
[
'time'
];
$time_arr
=
$this
->
m_secret_report
->
getListAll
(
'time'
,
$where_agent
);
$minute
=
$time
=
0
;
foreach
(
$time_arr
as
$t_val
)
{
if
(
$t_val
[
'time'
]
<=
60
)
{
$minute
+=
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