mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
增加通用开头功能
This commit is contained in:
@@ -7,13 +7,13 @@ class Site
|
||||
{
|
||||
public static function mapAllPost()
|
||||
{
|
||||
$list_post = \app\model\Post::cache(60)->where('status', 1)->select();
|
||||
$list_post = \app\model\Post::cache(60)->where('type',3)->where('status', 1)->select();
|
||||
|
||||
return $list_post;
|
||||
}
|
||||
public static function mapRecentlyPost()
|
||||
{
|
||||
$list_post = \app\model\Post::cache(60)->where('status', 1)->order('publish_time', "desc")->limit(25)->select();
|
||||
$list_post = \app\model\Post::cache(60)->where('type',3)->where('status', 1)->order('publish_time', "desc")->limit(25)->select();
|
||||
|
||||
return $list_post;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user