回放列表添加视频上传时间
编辑房间添加直播状态编辑(display:none)
Showing
3 changed files
with
8 additions
and
4 deletions
@@ -306,7 +306,8 @@ | @@ -306,7 +306,8 @@ | ||
306 | "pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | 306 | "pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", |
307 | "url": "qwe", | 307 | "url": "qwe", |
308 | "live_title": "qwe", | 308 | "live_title": "qwe", |
309 | - "audience_num": 0 | 309 | + "audience_num": 0, |
310 | + "create_time": 1472034199 | ||
310 | }, | 311 | }, |
311 | { | 312 | { |
312 | "video_id": 3, | 313 | "video_id": 3, |
@@ -317,7 +318,8 @@ | @@ -317,7 +318,8 @@ | ||
317 | "pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | 318 | "pic": "http:///global?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", |
318 | "url": "qwe", | 319 | "url": "qwe", |
319 | "live_title": "qwe", | 320 | "live_title": "qwe", |
320 | - "audience_num": 0 | 321 | + "audience_num": 0, |
322 | + "create_time": 1472034199 | ||
321 | } | 323 | } |
322 | ], | 324 | ], |
323 | "timestamp": 1471339317, | 325 | "timestamp": 1471339317, |
@@ -336,6 +338,7 @@ | @@ -336,6 +338,7 @@ | ||
336 | | url | str|回看腾讯视频连接 | 338 | | url | str|回看腾讯视频连接 |
337 | | live_title | str|直播时的房间标题 | 339 | | live_title | str|直播时的房间标题 |
338 | | audience_num | int|正在观看人数 | 340 | | audience_num | int|正在观看人数 |
341 | +| create_time | int|视频上传时间 | ||
339 | 342 | ||
340 | 343 | ||
341 | # **直播房间详情** | 344 | # **直播房间详情** |
@@ -95,12 +95,12 @@ $this->registerJs($this->blocks['javascript'],View::POS_END) | @@ -95,12 +95,12 @@ $this->registerJs($this->blocks['javascript'],View::POS_END) | ||
95 | </div> | 95 | </div> |
96 | </div> | 96 | </div> |
97 | 97 | ||
98 | - <!--<div class="form-group"> | 98 | + <div class="form-group" style="display: none"> |
99 | <label class="col-sm-3 control-label">直播状态: </label> | 99 | <label class="col-sm-3 control-label">直播状态: </label> |
100 | <div class="col-sm-2"> | 100 | <div class="col-sm-2"> |
101 | <?php echo Html::dropDownList('living', $model->living,Yii::$app->params['config']['room_living'], ['class' => 'form-control']);?> | 101 | <?php echo Html::dropDownList('living', $model->living,Yii::$app->params['config']['room_living'], ['class' => 'form-control']);?> |
102 | </div> | 102 | </div> |
103 | - </div>--> | 103 | + </div> |
104 | 104 | ||
105 | <div class="form-group" id="uploader"> | 105 | <div class="form-group" id="uploader"> |
106 | <label class="col-sm-3 control-label">头图: <span class="asterisk">*</span></label> | 106 | <label class="col-sm-3 control-label">头图: <span class="asterisk">*</span></label> |
@@ -159,6 +159,7 @@ class LivingController extends BaseController | @@ -159,6 +159,7 @@ class LivingController extends BaseController | ||
159 | 'live_title'=>$model->live_title, | 159 | 'live_title'=>$model->live_title, |
160 | 'live_room_id'=>(int)$model->room_id, | 160 | 'live_room_id'=>(int)$model->room_id, |
161 | 'audience_num'=>(int)($model->audience_num+$model->replay_num), | 161 | 'audience_num'=>(int)($model->audience_num+$model->replay_num), |
162 | + 'create_time'=>(int)$model->create_time, | ||
162 | ]; | 163 | ]; |
163 | $ret[$k] = $row; | 164 | $ret[$k] = $row; |
164 | } | 165 | } |
-
Please register or login to post a comment