From 17e42d4e0fa95c7af0173be4ef4768eeb6090d5f Mon Sep 17 00:00:00 2001
From: chengkun <chengkun@ishangstudy.com>
Date: Mon, 15 Sep 2025 14:43:34 +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