From 4822304b63e1bd6327860af7f3db0133cecf167f Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Fri, 05 Sep 2025 17:58:42 +0800
Subject: [PATCH] 提交
---
app/home/controller/Index.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/app/home/controller/Index.php b/app/home/controller/Index.php
index 4673ba3..1f2feb7 100644
--- a/app/home/controller/Index.php
+++ b/app/home/controller/Index.php
@@ -10,6 +10,8 @@
class Index extends BaseController {
public function index() {
+ $list = Db::name('blog')->where('status', 1)->limit(10)->order('id desc')->select()->toArray();
+ View::assign('list', $list);
return View::fetch('index');
}
--
Gitblit v1.9.0