From 3c9050e82e582414dc7b208c8283fe47be37eeba Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Mon, 15 Sep 2025 14:39:17 +0800
Subject: [PATCH] Merge branch 'master' into demo

---
 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