Commit 2ea044ad authored by hujun's avatar hujun

file_exists

parent ad352b00
...@@ -177,6 +177,15 @@ class PrivacyNumber ...@@ -177,6 +177,15 @@ class PrivacyNumber
$is_down = ''; $is_down = '';
foreach ($down_data as $k => $v) { foreach ($down_data as $k => $v) {
if (file_exists(PHONE_VOICE.'/'.$v['voice_file']) && !empty($v['voice_file'])) {
$data['record_down'] = empty($v['record_down']) ? 1 : 2;
if ($data['record_down'] == 1) {
$data['voice_file'] = date('Ymd') . '/' . basename($is_down);
}
$this->m_secret_report->updateDownStatus($v['id'], $data);
continue;
}
$create_time = date('Y-m-d', strtotime($v['create_time'])); $create_time = date('Y-m-d', strtotime($v['create_time']));
if ($v['type'] == 1) { if ($v['type'] == 1) {
try { try {
......
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