From dac50b4382ccdb629b2c20836ce02a7ca2570cd0 Mon Sep 17 00:00:00 2001 From: chengxl Date: Tue, 6 Jan 2026 11:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E9=A2=98=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E9=AA=8C=E8=AF=81=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/Article.php b/application/common/Article.php index 136ef48..f39e130 100644 --- a/application/common/Article.php +++ b/application/common/Article.php @@ -408,7 +408,7 @@ class Article $iUserId = empty($aParam['user_id']) ? 0 : $aParam['user_id']; //查询标题是否存在 $aWhere = ['title' => trim($sTitle)]; - $aArticle = Db::name('article')->field('article_id,user_id,state,accept_sn')->where($aWhere)->order('article_id asc')->select(); + $aArticle = Db::name('article')->field('article_id,user_id,state,accept_sn')->where($aWhere)->order('article_id desc')->select(); if(empty($aArticle)){ return ['status' => 1,'msg' => 'No articles with relevant titles found']; }