修改表明
This commit is contained in:
@@ -1784,8 +1784,8 @@ class CallBackController extends AbstractController
|
||||
$params = array();
|
||||
$params['room_id'] = $request_params['EventInfo']['RoomId'];
|
||||
$params['order_inquiry_id'] = $order_inquiry_video_reservation['order_inquiry_id'];
|
||||
$order_inquiry_video_records = OrderInquiryVideoRecord::getLastOne($params);
|
||||
if (empty($order_inquiry_video_records)){
|
||||
$order_inquiry_video_record = OrderInquiryVideoRecord::getLastOne($params);
|
||||
if (empty($order_inquiry_video_record)){
|
||||
return $this->TrtcErrorReturn("缺少视频开启记录");
|
||||
}
|
||||
|
||||
@@ -1855,14 +1855,14 @@ class CallBackController extends AbstractController
|
||||
}
|
||||
|
||||
// 检测视频状态
|
||||
if ($order_inquiry_video_records['video_status'] == 3 || $order_inquiry_video_records['video_status'] == 4){
|
||||
if ($order_inquiry_video_record['video_status'] == 3 || $order_inquiry_video_record['video_status'] == 4){
|
||||
// 已开始/结束通话,进入房间动作不做处理
|
||||
return $this->TrtcSuccessReturn();
|
||||
}
|
||||
|
||||
// 修改视频状态
|
||||
$params = array();
|
||||
$params['records_id'] = $order_inquiry_video_records['records_id'];
|
||||
$params['records_id'] = $order_inquiry_video_record['records_id'];
|
||||
|
||||
$data = array();
|
||||
$data['video_status'] = 2;
|
||||
@@ -1874,14 +1874,14 @@ class CallBackController extends AbstractController
|
||||
break;
|
||||
case '102': // 解散房间
|
||||
// 检测视频状态
|
||||
if ($order_inquiry_video_records['video_status'] == 4){
|
||||
if ($order_inquiry_video_record['video_status'] == 4){
|
||||
// 已结束通话,解散房间动作不做处理
|
||||
return $this->TrtcSuccessReturn();
|
||||
}
|
||||
|
||||
// 修改视频状态
|
||||
$params = array();
|
||||
$params['records_id'] = $order_inquiry_video_records['records_id'];
|
||||
$params['records_id'] = $order_inquiry_video_record['records_id'];
|
||||
|
||||
$data = array();
|
||||
$data['video_status'] = 4;
|
||||
@@ -1894,19 +1894,19 @@ class CallBackController extends AbstractController
|
||||
break;
|
||||
case '201': // 视频推流
|
||||
// 检测视频状态
|
||||
if ($order_inquiry_video_records['video_status'] == 4){
|
||||
if ($order_inquiry_video_record['video_status'] == 4){
|
||||
// 已结束通话,视频推流动作不做处理
|
||||
return $this->TrtcSuccessReturn();
|
||||
}
|
||||
|
||||
if ($order_inquiry_video_records['video_status'] == 3){
|
||||
if ($order_inquiry_video_record['video_status'] == 3){
|
||||
// 已开始通话,视频推流动作不做处理
|
||||
return $this->TrtcSuccessReturn();
|
||||
}
|
||||
|
||||
// 修改视频状态
|
||||
$params = array();
|
||||
$params['records_id'] = $order_inquiry_video_records['records_id'];
|
||||
$params['records_id'] = $order_inquiry_video_record['records_id'];
|
||||
|
||||
$data = array();
|
||||
$data['video_status'] = 3;
|
||||
@@ -1919,7 +1919,7 @@ class CallBackController extends AbstractController
|
||||
break;
|
||||
case '203': // 音频推流
|
||||
// 检测视频状态
|
||||
if ($order_inquiry_video_records['video_status'] == 4){
|
||||
if ($order_inquiry_video_record['video_status'] == 4){
|
||||
// 已结束通话,音频推流动作不做处理
|
||||
return $this->TrtcSuccessReturn();
|
||||
}
|
||||
@@ -2029,7 +2029,7 @@ class CallBackController extends AbstractController
|
||||
}
|
||||
|
||||
$request_params = json_decode($request_params,true);
|
||||
return $this->recordingSuccessReturn();
|
||||
|
||||
// 验证参数
|
||||
if (empty($request_params['EventGroupId'])){
|
||||
return $this->recordingErrorReturn("回调事件组为空");
|
||||
@@ -2056,7 +2056,7 @@ class CallBackController extends AbstractController
|
||||
return $this->recordingErrorReturn("回调地址推送错误");
|
||||
}
|
||||
|
||||
if (!in_array($request_params['EventType'],[102,103,201,203])){
|
||||
if (!in_array($request_params['EventType'],[301,312])){
|
||||
return $this->recordingSuccessReturn();
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user