Baseconfig.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use think\Db;
  5. /**
  6. * 基础配置接口
  7. */
  8. class Baseconfig extends Api
  9. {
  10. protected $noNeedLogin = ['*'];
  11. protected $noNeedRight = ['*'];
  12. public function index(){
  13. //api/index/indexdata里复制出来的
  14. $config['vip'] = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home/vip.webp'; //vip图标
  15. $config['free'] = 'https://jiankang-1304634122.cos.ap-nanjing.myqcloud.com/home/free.webp';//免费图标
  16. $config['leftbottom'] = config('site.tv_videoinfo_banquan'); //视频详情页,版权说明
  17. $config['beian']['top'] = ''; //屏幕上面显示的备案
  18. $config['beian']['bottom'] = ''; //屏幕下面显示的备案
  19. //新的
  20. $config['video_goback_seconds'] = config('site.video_goback_seconds');//视频点一次快进、快退行进的秒数
  21. $config['appstart_video'] = localpath_to_netpath(config('site.appstart_video'));//app启动视频
  22. //各处背景图
  23. $config['index_bg_image'] = localpath_to_netpath(config('site.index_bg_image'));//首页+顶部5个按钮里面的页,共用一个
  24. $config['doctorindex_bg_img'] = localpath_to_netpath(config('site.doctorindex_bg_img'));//医生首页
  25. $config['doctorcollect_bg_img'] = localpath_to_netpath(config('site.doctorcollect_bg_img'));//医生收藏
  26. $config['wenzhenorder_bg_img'] = localpath_to_netpath(config('site.wenzhenorder_bg_img'));//问诊历史
  27. $this->success('success',$config);
  28. }
  29. }