Authored by xiaofeng.yao@yoho.cn

去掉禁用直播停止任务逻辑

@@ -272,7 +272,7 @@ class Room extends \yii\db\ActiveRecord @@ -272,7 +272,7 @@ class Room extends \yii\db\ActiveRecord
272 if ($status == 1){//启用 272 if ($status == 1){//启用
273 $ret = QcloudApiClient::self()->StartLVBChannel([$model->roomQchannel->channel_id]); 273 $ret = QcloudApiClient::self()->StartLVBChannel([$model->roomQchannel->channel_id]);
274 }elseif ($status == 0){//禁用 274 }elseif ($status == 0){//禁用
275 - if ($model->videoRecording){ 275 + /*if ($model->videoRecording){
276 //停止正在录制的视频 276 //停止正在录制的视频
277 if ($model->videoRecording->task_id){ 277 if ($model->videoRecording->task_id){
278 if (QcloudApiClient::self()->StopRecord($model->roomQchannel->channel_id,$model->videoRecording->task_id)){ 278 if (QcloudApiClient::self()->StopRecord($model->roomQchannel->channel_id,$model->videoRecording->task_id)){
@@ -280,7 +280,7 @@ class Room extends \yii\db\ActiveRecord @@ -280,7 +280,7 @@ class Room extends \yii\db\ActiveRecord
280 $model->videoRecording->save(); 280 $model->videoRecording->save();
281 } 281 }
282 } 282 }
283 - } 283 + }*/
284 $ret = QcloudApiClient::self()->StopLVBChannel([$model->roomQchannel->channel_id]); 284 $ret = QcloudApiClient::self()->StopLVBChannel([$model->roomQchannel->channel_id]);
285 } 285 }
286 286