diff --git a/conf/app.php b/conf/app.php index e0cfb34..bb99bc1 100644 --- a/conf/app.php +++ b/conf/app.php @@ -3,8 +3,8 @@ * Config */ $configs = array( - 'version' => '0.3.2', - 'releaseDate' => '2024-9-29', + 'version' => '0.3.3', + 'releaseDate' => '2024-9-30', 'showVersion' => false, //默认不显示版本号和发布日期 'default_timezone' => 'Asia/Hong_Kong', //timezone, check more: https://www.php.net/manual/en/timezones.asia.php @@ -72,6 +72,9 @@ $configs = array( 'enableSmallImageForWan' => false, //外网使用时,点击图片打开fancybox时是否显示缩略图:true 显示缩略图, false 则显示原图 'smallImageQuality' => 95, //缩略图压缩比率,0 - 100,数字越大,清晰度越高,系统默认:95 + 'default_page_size' => 48, //每页显示图片数量,请设置6的倍数(因为电脑版一行时6个图片) + 'slide_show_timeout' => 3, //自动播放图片时,切换下一张的延迟秒数,单位:秒 + //关闭服务器端生成缩略图,如果在cpu性能较低的设备(如路由器)里运行,开启此配置可以减少cpu消耗 //如果在外网运行,开启此配置,则可能会因为服务器带宽较小导致图片加载缓慢 'disableGenerateSmallImageInServer' => false, diff --git a/themes/beauty/controller/ListController.php b/themes/beauty/controller/ListController.php index 734e235..6598cc0 100644 --- a/themes/beauty/controller/ListController.php +++ b/themes/beauty/controller/ListController.php @@ -161,7 +161,7 @@ Class ListController extends Controller { //翻页支持 $page = $this->get('page', 1); - $pageSize = $this->get('limit', 24); + $pageSize = $this->get('limit', FSC::$app['config']['default_page_size']); $page = (int)$page; $pageSize = (int)$pageSize; diff --git a/themes/beauty/controller/SiteController.php b/themes/beauty/controller/SiteController.php index cfaa48e..b623a2e 100644 --- a/themes/beauty/controller/SiteController.php +++ b/themes/beauty/controller/SiteController.php @@ -130,7 +130,7 @@ Class SiteController extends Controller { //翻页支持 $page = $this->get('page', 1); - $pageSize = $this->get('limit', 24); + $pageSize = $this->get('limit', FSC::$app['config']['default_page_size']); $page = (int)$page; $pageSize = (int)$pageSize; diff --git a/themes/beauty/views/layout/main.php b/themes/beauty/views/layout/main.php index d34e5c2..36c5a67 100644 --- a/themes/beauty/views/layout/main.php +++ b/themes/beauty/views/layout/main.php @@ -105,6 +105,7 @@ require_once __DIR__ . '/../../../../plugins/Html.php';