Browse Source

修复BUG

dev
xiaoz 6 years ago
parent
commit
83afcf4075
  1. 10
      application/controllers/Found.php

10
application/controllers/Found.php

@ -29,7 +29,8 @@
$siteinfo = $this->query->site_setting(); $siteinfo = $this->query->site_setting();
$siteinfo = $siteinfo->values; $siteinfo = $siteinfo->values;
$siteinfo = json_decode($siteinfo); $siteinfo = json_decode($siteinfo);
//每页显示16张图片
$limit = 16;
//echo $page; //echo $page;
$siteinfo->title = '探索发现 - '.$siteinfo->title; $siteinfo->title = '探索发现 - '.$siteinfo->title;
@ -37,18 +38,23 @@
switch($type){ switch($type){
case 'all': case 'all':
//查询游客上传图片总数 //查询游客上传图片总数
$num = $this->query->count_num('visitor')->num;
$config['base_url'] = "/found/all/"; $config['base_url'] = "/found/all/";
break; break;
case 'gif': case 'gif':
$num = $this->query->count_num('gif')->num;
$config['base_url'] = "/found/gif/"; $config['base_url'] = "/found/gif/";
break; break;
case 'views': case 'views':
$num = $this->query->count_num('visitor')->num;
$config['base_url'] = "/found/views/"; $config['base_url'] = "/found/views/";
break; break;
case 'large': case 'large':
$num = $this->query->count_num('large')->num;
$config['base_url'] = "/found/large/"; $config['base_url'] = "/found/large/";
break; break;
default: default:
$num = $this->query->count_num('visitor')->num;
$config['base_url'] = "/found/all/"; $config['base_url'] = "/found/all/";
break; break;
} }

Loading…
Cancel
Save