From 79a17d758e4fa3872556d3044a079d45cb3fd2d8 Mon Sep 17 00:00:00 2001 From: Alone <675061370@qq.com> Date: Mon, 4 Nov 2024 13:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E8=B5=84=E6=BA=90=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Index.php | 2 +- app/index/view/news/index.html | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 060402d..3857380 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -40,7 +40,7 @@ class Index extends QfShop $map[] = ['is_delete', '=', 0]; $newList = $this->SourceModel->order(['create_time' => 'desc']) - ->field('title,create_time as time') + ->field('title,create_time as time,source_id as id') ->where($map) ->limit(Config('qfshop.ranking_num') ?? 1) ->select()->each(function($item,$key){ diff --git a/app/index/view/news/index.html b/app/index/view/news/index.html index f8650de..3969636 100644 --- a/app/index/view/news/index.html +++ b/app/index/view/news/index.html @@ -26,7 +26,8 @@