From 95e1a7068d8e6caf78bb3049ddc9c6424f15f467 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 17:22:03 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Article.php b/app/controller/Article.php index 18a7d0e..33804fb 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -100,7 +100,7 @@ class Article $info['other_list'][] = $vo; } $info['userinfo']=[]; - $userinfo = Db::name("student")->where("id",$info['userid'])->order("id desc")->field("nickname,avatar,age,type,disabled as is_disabled,city,school,hot")->find(); + $userinfo = Db::name("student")->where("id",$info['userid'])->field("nickname,avatar,age,type,disabled as is_disabled,city,school,hot")->find(); $info['userinfo'] = $userinfo; return show(SUCCESS_MESSAGE,SUCCESS_CODE,$info);