|
@@ -22,16 +22,20 @@ class Tvindex extends Api
|
|
|
$data['index_search_switch'] = config('site.index_search_switch');
|
|
|
$data['index_history_switch'] = config('site.index_history_switch');
|
|
|
$data['index_dinggou_switch'] = config('site.index_dinggou_switch');
|
|
|
+ $data['index_account_switch'] = config('site.index_account_switch');
|
|
|
|
|
|
//右上角 三行
|
|
|
-
|
|
|
$data['index_right_1'] = config('site.index_right_1');
|
|
|
$data['index_right_2'] = config('site.index_right_2');
|
|
|
$data['index_right_3'] = config('site.index_right_3');
|
|
|
|
|
|
- //固定五个
|
|
|
- $data['index_top_video_image'] = localpath_to_netpath(config('site.index_top_video_image'));
|
|
|
- $data['index_top_video'] = localpath_to_netpath(config('site.index_top_video'));
|
|
|
+ //主视频
|
|
|
+ $index_top_video_id = config('site.index_top_video_id');
|
|
|
+ $index_top_video = Db::name('video')->field('id,image,programid,movieid')->where('id',$index_top_video_id)->where('inject_status',2)->find();
|
|
|
+ if(!empty($index_top_video)){
|
|
|
+ $index_top_video['image'] = localpath_to_netpath($index_top_video['image']);
|
|
|
+ }
|
|
|
+ $data['index_top_video'] = $index_top_video;
|
|
|
|
|
|
//问诊四个
|
|
|
$page_wenzhen = Db::name('page_wenzhen')->field('id,name,image,url')->where('status',1)->order('weigh asc')->select();
|