Commit 9255c574 authored by hujun's avatar hujun

时间判断

parent 25ddd87d
......@@ -137,18 +137,19 @@ class PrivacyNumber
$where['record_down'] = 1;
}
$is_today = date('Y-m-d', strtotime($param['date'])) == date('Y-m-d') ? 1:0;
$is_today = 1;
if (!empty($param['date'])) {
$is_today = date('Y-m-d', strtotime($param['date'])) == date('Y-m-d') ? 1:0;
}
if (empty($param['date']) && $is_today) {
$date = date('Y-m-d', time() - 5400); //录音生成时间15分钟左右
} else {
$date = date('Y-m-d', strtotime($param['date']));
$date = date('Y-m-d H:i:s', time() - 5400); //录音生成时间15分钟左右
$where['create_time'] = [ '>', $date ];
}
$fields = 'id,call_id,call_time,voice_file,type,record_down,mp3_url,create_time';
$where['time'] = [ '>', 0 ];
$where['type'] = [ '>', 0 ];
$where['create_time'] = [ '>', $date ];
try {
$down_data = $this->m_secret_report->secretReportAll($fields, $where, 3000);
......
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