...
|
...
|
@@ -212,7 +212,8 @@ class LivingController extends BaseController |
|
|
'living'=>$model->living,
|
|
|
'like_num'=>0,
|
|
|
'audience_num'=>0,//在线人数
|
|
|
'live_start_time'=>$model->starting_time,
|
|
|
'live_start_time'=>0,
|
|
|
'starting_time'=>$model->starting_time,//预告时间
|
|
|
'rtmp_downstream_address'=>'',
|
|
|
'flv_downstream_address'=>'',
|
|
|
'hls_downstream_address'=>'',
|
...
|
...
|
@@ -243,11 +244,11 @@ class LivingController extends BaseController |
|
|
]);
|
|
|
}
|
|
|
|
|
|
/*if ($model->videoRecording){
|
|
|
if ($model->videoRecording){
|
|
|
$ret = array_merge($ret,[
|
|
|
'live_start_time'=>(int)$model->videoRecording->live_start_time,
|
|
|
]);
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
if ($model->roomQchannel){
|
|
|
if (is_array($downstream_address = json_decode($model->roomQchannel->downstream_address)) && !empty($downstream_address[0])){
|
...
|
...
|
@@ -329,7 +330,9 @@ class LivingController extends BaseController |
|
|
|
|
|
$ret['background_pic'] = 'http://img11.static.yhbimg.com/global/2016/08/17/18/01f17a9cd44149052482e4ee58e590cf1b.png';
|
|
|
$ret['share_url'] = 'http://m.yohobuy.com/activity/live/replay/'.$room_id;
|
|
|
|
|
|
$ret['share_title'] = '分享标题';
|
|
|
$ret['share_content'] = '分享内容';
|
|
|
|
|
|
$dependency = new \yii\caching\DbDependency(['sql' => Yii::$app->db
|
|
|
->createCommand('SELECT update_time FROM {{%video}} WHERE id=:video_id')
|
|
|
->bindValue(':video_id', $video_id)
|
...
|
...
|
|