diff --git a/app/admin/controller/Admin.php b/app/admin/controller/Admin.php index 6ea21cc..dbe47e5 100644 --- a/app/admin/controller/Admin.php +++ b/app/admin/controller/Admin.php @@ -28,7 +28,7 @@ class Admin extends BaseController $where[] = ['id|username|nickname|desc|mobile', 'like', '%' . $param['keywords'] . '%']; } $where[] = ['status','>=',0]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $admin = AdminList::where($where) ->order('create_time asc') ->paginate($rows, false, ['query' => $param]) @@ -263,7 +263,7 @@ class Admin extends BaseController if (!empty($param['rule_menu'])) { $where['rule_menu'] = $param['rule_menu']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = DB::name('AdminLog') ->field("id,uid,nickname,title,content,rule_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time") ->order('create_time desc') diff --git a/app/admin/controller/Conf.php b/app/admin/controller/Conf.php index 12592df..20d1480 100644 --- a/app/admin/controller/Conf.php +++ b/app/admin/controller/Conf.php @@ -23,7 +23,7 @@ class Conf extends BaseController $param = get_params(); $where = array(); $where[] = ['status', '>=', 0]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = Db::name('Config') ->where($where) ->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/controller/Keywords.php b/app/admin/controller/Keywords.php index 2d937c3..ecb17a6 100644 --- a/app/admin/controller/Keywords.php +++ b/app/admin/controller/Keywords.php @@ -26,7 +26,7 @@ class Keywords extends BaseController $where[] = ['title', 'like', '%' . $param['keywords'] . '%']; } $where[] = ['status', '>=', 0]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = Db::name('Keywords') ->order('create_time desc') ->where($where) diff --git a/app/admin/controller/Links.php b/app/admin/controller/Links.php index 2897283..2242272 100644 --- a/app/admin/controller/Links.php +++ b/app/admin/controller/Links.php @@ -27,7 +27,7 @@ class links extends BaseController $where[] = ['id|name', 'like', '%' . $param['keywords'] . '%']; } $where[] = ['status', '=', 1]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $links = linksList::where($where) ->order('sort desc, id desc') ->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/controller/Log.php b/app/admin/controller/Log.php index a533f40..75a8fee 100644 --- a/app/admin/controller/Log.php +++ b/app/admin/controller/Log.php @@ -27,7 +27,7 @@ class Log extends BaseController if (!empty($param['action'])) { $where['action'] = $param['action']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = DB::name('AdminLog') ->field("id,uid,nickname,action,title,content,rule_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time") ->order('create_time desc') diff --git a/app/admin/controller/Nav.php b/app/admin/controller/Nav.php index 67570a0..77ed771 100644 --- a/app/admin/controller/Nav.php +++ b/app/admin/controller/Nav.php @@ -27,7 +27,7 @@ class Nav extends BaseController if (!empty($param['keywords'])) { $where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $nav = NavList::where($where) ->order('create_time asc') ->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/controller/Role.php b/app/admin/controller/Role.php index 1fe7e7b..817639a 100644 --- a/app/admin/controller/Role.php +++ b/app/admin/controller/Role.php @@ -26,7 +26,7 @@ class Role extends BaseController if (!empty($param['keywords'])) { $where[] = ['id|title|desc', 'like', '%' . $param['keywords'] . '%']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $group = AdminGroup::where($where) ->order('create_time asc') ->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/controller/Search.php b/app/admin/controller/Search.php index a58acf6..fb24c83 100644 --- a/app/admin/controller/Search.php +++ b/app/admin/controller/Search.php @@ -23,7 +23,7 @@ class Search extends BaseController if (!empty($param['keywords'])) { $where[] = ['title', 'like', '%' . $param['keywords'] . '%']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = Db::name('SearchKeywords') ->order('id desc') ->where($where) diff --git a/app/admin/controller/Sitemap.php b/app/admin/controller/Sitemap.php index d0a6b79..bf80fcb 100644 --- a/app/admin/controller/Sitemap.php +++ b/app/admin/controller/Sitemap.php @@ -29,7 +29,7 @@ class Sitemap extends BaseController $where[] = ['id|name', 'like', '%' . $param['keywords'] . '%']; } $where[] = ['status', '=', 1]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $SitemapCate = SitemapCate::where($where) ->order('sort desc, id desc') ->paginate($rows, false, ['query' => $param]); @@ -118,7 +118,7 @@ class Sitemap extends BaseController $where = array(); $where[] = ['sitemap_cate_id', '=', $param['id']]; $where[] = ['status', '>=', 0]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $sitemap = SitemapInfo::where($where) ->order('sort desc, id desc') ->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/controller/Slide.php b/app/admin/controller/Slide.php index 1e911f2..23fec04 100644 --- a/app/admin/controller/Slide.php +++ b/app/admin/controller/Slide.php @@ -27,7 +27,7 @@ class Slide extends BaseController if (!empty($param['keywords'])) { $where[] = ['id|name|title|desc', 'like', '%' . $param['keywords'] . '%']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $slide = SlideList::where($where) ->order('create_time asc') ->paginate($rows, false, ['query' => $param]); @@ -112,7 +112,7 @@ class Slide extends BaseController if (request()->isAjax()) { $where = array(); $where[] = ['s.slide_id', '=', $param['id']]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $slideInfoList = SlideInfo::where($where) ->alias('s') ->join('File f', 's.img=f.id', 'LEFT') @@ -133,7 +133,7 @@ class Slide extends BaseController $param = get_params(); $where = array(); $where[] = ['s.slide_id', '=', $param['id']]; - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $slideInfoList = SlideInfo::where($where) ->alias('s') ->join('File f', 's.img=f.id', 'LEFT') diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index da94568..decc1d8 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -43,7 +43,7 @@ class User extends BaseController $where[] = ['register_time', '<=', $end_time]; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = UserList::where($where) ->order('id desc') ->paginate($rows, false, ['query' => $param]) @@ -123,7 +123,7 @@ class User extends BaseController if (!empty($param['action'])) { $where[] = ['title', '=', $param['action']]; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = DB::name('UserLog') ->field("id,uid,nickname,title,content,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time") ->order('create_time desc') @@ -161,7 +161,7 @@ class User extends BaseController if (!empty($param['keywords'])) { $where[] = ['nickname|title', 'like', '%' . $param['keywords'] . '%']; } - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $content = Db::name('UserLog') ->field("id,uid,nickname,title,content,ip,param,create_time") ->order('create_time desc') diff --git a/app/admin/model/Article.php b/app/admin/model/Article.php index d14e708..c9f165a 100644 --- a/app/admin/model/Article.php +++ b/app/admin/model/Article.php @@ -37,7 +37,7 @@ class Article extends Model */ public function getArticleList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'a.id desc' : $param['order']; $list = $this->where($where) ->field('a.*,c.id as cate_id,c.title as cate_title,u.nickname as admin_name') diff --git a/app/admin/model/ArticleCate.php b/app/admin/model/ArticleCate.php index b72b2cd..e093bc0 100644 --- a/app/admin/model/ArticleCate.php +++ b/app/admin/model/ArticleCate.php @@ -15,7 +15,7 @@ class ArticleCate extends Model */ public function getArticleCateList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; try { $list = $this->where($where)->order($order)->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/model/Gallery.php b/app/admin/model/Gallery.php index 94584d7..37a903f 100644 --- a/app/admin/model/Gallery.php +++ b/app/admin/model/Gallery.php @@ -36,7 +36,7 @@ class Gallery extends Model */ public function getGalleryList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'a.id desc' : $param['order']; $list = $this->where($where) ->field('a.*,c.title as cate_title,u.nickname as admin_name') diff --git a/app/admin/model/GalleryCate.php b/app/admin/model/GalleryCate.php index 0bd595c..4dd424e 100644 --- a/app/admin/model/GalleryCate.php +++ b/app/admin/model/GalleryCate.php @@ -15,7 +15,7 @@ class GalleryCate extends Model */ public function getGalleryCateList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; try { $list = $this->where($where)->order($order)->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/model/Goods.php b/app/admin/model/Goods.php index 92fcba2..b15f17b 100644 --- a/app/admin/model/Goods.php +++ b/app/admin/model/Goods.php @@ -35,7 +35,7 @@ class Goods extends Model */ public function getGoodsList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'a.id desc' : $param['order']; $list = $this->where($where) ->field('a.*,c.title as cate_title,u.nickname as admin_name') diff --git a/app/admin/model/GoodsCate.php b/app/admin/model/GoodsCate.php index 7501261..102def8 100644 --- a/app/admin/model/GoodsCate.php +++ b/app/admin/model/GoodsCate.php @@ -15,7 +15,7 @@ class GoodsCate extends Model */ public function getGoodsCateList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; try { $list = $this->where($where)->order($order)->paginate($rows, false, ['query' => $param]); diff --git a/app/admin/model/Pages.php b/app/admin/model/Pages.php index c5fc804..2e8ff01 100644 --- a/app/admin/model/Pages.php +++ b/app/admin/model/Pages.php @@ -33,7 +33,7 @@ class Pages extends Model */ public function getPagesList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + $rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; $list = $this->where($where) ->field('a.*,u.nickname as admin_name')