<?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启动视频

        //各处背景图
        $config['index_bg_image'] = localpath_to_netpath(config('site.index_bg_image'));//首页+顶部5个按钮里面的页,共用一个
        $config['doctorindex_bg_img'] = localpath_to_netpath(config('site.doctorindex_bg_img'));//医生首页
        $config['doctorcollect_bg_img'] = localpath_to_netpath(config('site.doctorcollect_bg_img'));//医生收藏
        $config['wenzhenorder_bg_img'] = localpath_to_netpath(config('site.wenzhenorder_bg_img'));//问诊历史


        $this->success('success',$config);
    }

}