lizhen_gitee 9 mesiacov pred
rodič
commit
69b069630d

+ 32 - 0
application/api/controller/Baseconfig.php

@@ -0,0 +1,32 @@
+<?php
+
+namespace app\api\controller;
+
+use app\common\controller\Api;
+use think\Db;
+/**
+ * 基础配置接口
+ */
+class Baseconfig extends Api
+{
+    protected $noNeedLogin = ['*'];
+    protected $noNeedRight = ['*'];
+
+   
+    public function index(){
+
+        //api/index/indexdata里复制出来的
+        $config['vip']        = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home/vip.webp'; //vip图标
+        $config['free']       = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home/free.webp';//免费图标
+        $config['leftbottom'] = config('site.tv_videoinfo_banquan'); //视频详情页,版权说明
+        $config['beian']['top']    = ''; //屏幕上面显示的备案
+        $config['beian']['bottom'] = ''; //屏幕下面显示的备案
+
+        //新的
+        $config['video_goback_seconds'] = config('site.video_goback_seconds');//视频点一次快进、快退行进的秒数
+        $config['appstart_video'] = localpath_to_netpath(config('site.appstart_video'));//app启动视频
+
+        $this->success('success',$config);
+    }
+
+}

+ 5 - 1
application/api/controller/Tvindex.php

@@ -13,7 +13,10 @@ class Tvindex extends Api
     //首页
     public function indexdata(){
 
-        //左上角 logo,名称,4个按钮
+        //背景图
+        $data['index_bg_image'] = localpath_to_netpath(config('site.index_bg_image'));
+
+        //左上角 logo,名称,4个按钮,账号
 
         $data['index_logo']           = localpath_to_netpath(config('site.index_logo'));
         $data['index_appname']        = config('site.index_appname');
@@ -28,6 +31,7 @@ class Tvindex extends Api
         $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_right_4'] = config('site.index_right_4');
 
         //主视频
         $index_top_video_id = config('site.index_top_video_id');

+ 4 - 0
application/extra/site.php

@@ -69,4 +69,8 @@ return array (
 4、就近的营业厅办理增值业务退订。
 5、拨打10086客服热线进行退订。
 6、登录中国移动网上营业厅:http://10086.cn 掌上营业厅:wap.10086.cn“已开服务 一 增值业务”进行退订。',
+  'video_goback_seconds' => '20',
+  'tv_videoinfo_banquan' => '内容如有侵权,请联系删除',
+  'appstart_video' => '/uploads/20240624/c033c462e728b2668c2fa71574b23660.mp4',
+  'index_bg_image' => '/uploads/20240624/9408560b14c534fe1cbfc21ffc3a984e.jpg',
 );