|
@@ -169,7 +169,7 @@ class Tvindex extends Api
|
|
|
|
|
|
//猜你喜欢
|
|
|
$guess_list = Db::name('video')->field('id, title, image, is_pay')->where(['status' => 1, 'inject_status' => 2])
|
|
|
- ->orderRaw('rand()')->limit(4)->select();
|
|
|
+ ->orderRaw('rand()')->limit(6)->select();
|
|
|
$guess_list = list_domain_image($guess_list, ['image']);
|
|
|
|
|
|
//记录浏览历史,给浏览历史列表用的,即时的
|
|
@@ -257,10 +257,18 @@ class Tvindex extends Api
|
|
|
$this->error('您的网络开小差了~');
|
|
|
}
|
|
|
|
|
|
+ $video_type = Db::name('video_type')->field('id,name,bg_image')->where('id',$type_id)->find();
|
|
|
+ $video_type = info_domain_image($video_type,['bg_image']);
|
|
|
+
|
|
|
$list = Db::name('video')->field('id, title, image, is_pay, status, inject_status, seriesid, programid, movieid')->where(['video_type_id' => $type_id, 'status' => 1, 'inject_status' => 2])->order('weigh asc, id desc')->limit(5)->select();
|
|
|
|
|
|
$list = list_domain_image($list, ['image']);
|
|
|
- $this->success('视频', $list);
|
|
|
+
|
|
|
+ $result = [
|
|
|
+ 'info' => $video_type,
|
|
|
+ 'list' => $list,
|
|
|
+ ];
|
|
|
+ $this->success('视频', $result);
|
|
|
}
|
|
|
|
|
|
//退订服务
|