Commit 9ff95082 authored by hujun's avatar hujun

同步代码

parent 4ba8b958
...@@ -183,13 +183,14 @@ class PrivacyNumber ...@@ -183,13 +183,14 @@ class PrivacyNumber
} }
$where['call_time'] = ['BETWEEN', [$date . ' 00:00:00',$date .' 23:59:59']]; $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['time'] = [ '>', 0 ];
$where['type'] = [ '>', 0 ]; $where['type'] = [ '>', 0 ];
$down_data = $this->m_secret_report->secretReportAll($fields, $where); $down_data = $this->m_secret_report->secretReportAll($fields, $where);
$is_down = ''; $is_down = '';
foreach ($down_data as $k => $v) { foreach ($down_data as $k => $v) {
$create_time = date('Y-m-d', strtotime($v['create_time']));
if ($v['type'] == 1) { if ($v['type'] == 1) {
/*阿里云音频下载*/ /*阿里云音频下载*/
$result_data = PlsDemo::queryRecordFileDownloadUrl($v['call_id'], $v['call_time']); $result_data = PlsDemo::queryRecordFileDownloadUrl($v['call_id'], $v['call_time']);
...@@ -202,7 +203,7 @@ class PrivacyNumber ...@@ -202,7 +203,7 @@ class PrivacyNumber
$file_name = explode('/', $v['voice_file']); $file_name = explode('/', $v['voice_file']);
$file_name = $file_name[1]; $file_name = $file_name[1];
} }
$is_down = down_file($result_data->DownloadUrl, PHONE_VOICE, $file_name, $date); $is_down = down_file($result_data->DownloadUrl, PHONE_VOICE, $file_name, $create_time);
} }
} elseif ($v['type'] == 2) { } elseif ($v['type'] == 2) {
/*容联云音频下载*/ /*容联云音频下载*/
...@@ -213,7 +214,7 @@ class PrivacyNumber ...@@ -213,7 +214,7 @@ class PrivacyNumber
$file_name = explode('/', $v['voice_file']); $file_name = explode('/', $v['voice_file']);
$file_name = $file_name[1]; $file_name = $file_name[1];
} }
$is_down = down_file($v['mp3_url'], PHONE_VOICE, $file_name, $date); $is_down = down_file($v['mp3_url'], PHONE_VOICE, $file_name, $create_time);
} }
} }
...@@ -530,7 +531,7 @@ class PrivacyNumber ...@@ -530,7 +531,7 @@ class PrivacyNumber
$where_agent['time'] = $where['time']; $where_agent['time'] = $where['time'];
$time_arr = $this->m_secret_report->getListAll('time', $where_agent); $time_arr = $this->m_secret_report->getListAll('time', $where_agent);
$minute = $time = 0; $minute = $time = 0;
foreach ($time_arr as $t_val) { foreach ($time_arr as $t_val) {
if ($t_val['time'] <= 60) { if ($t_val['time'] <= 60) {
$minute += 1; $minute += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment