Commit 19bd5365 authored by hujun's avatar hujun

录音回调返回值

parent 67a6c4a6
...@@ -651,7 +651,7 @@ class PrivacyNumber ...@@ -651,7 +651,7 @@ class PrivacyNumber
$result_data = PlsDemo::queryRecordFileDownloadUrl($v['call_id'], $v['call_time']); $result_data = PlsDemo::queryRecordFileDownloadUrl($v['call_id'], $v['call_time']);
} catch (\Exception $e) { } catch (\Exception $e) {
Log::write($e->getMessage(), 'voice_down_callBack_error'); //记录日志 Log::write($e->getMessage(), 'voice_down_callBack_error'); //记录日志
return ; return json_encode(['code' => 1, 'msg' => '处理回调失败']);
} }
if (isset($result_data->Message) && $result_data->Message == 'OK') { if (isset($result_data->Message) && $result_data->Message == 'OK') {
...@@ -666,17 +666,17 @@ class PrivacyNumber ...@@ -666,17 +666,17 @@ class PrivacyNumber
} }
} }
} }
$return = json_encode(['code' => 0, 'msg' => '接收成功']);
if (isset($update_data)) { if (isset($update_data)) {
try { try {
$m_secret_report->insertDataAll($update_data); $m_secret_report->insertDataAll($update_data);
Log::write(json_encode($update_data), 'voice_down_callBack_update'); //记录日志 Log::write(json_encode($update_data), 'voice_down_callBack_update'); //记录日志
} catch (\Exception $e) { } catch (\Exception $e) {
Log::write($e->getMessage(), 'voice_down_callBack_save_error'); //记录日志 Log::write($e->getMessage(), 'voice_down_callBack_save_error'); //记录日志
return ; $return = json_encode(['code' => 1, 'msg' => '处理回调失败']);
} }
} }
return ; return $return;
} }
} }
\ No newline at end of file
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