diff --git a/app/controller/Article.php b/app/controller/Article.php index 33804fb..18a7d0e 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'])->field("nickname,avatar,age,type,disabled as is_disabled,city,school,hot")->find(); + $userinfo = Db::name("student")->where("id",$info['userid'])->order("id desc")->field("nickname,avatar,age,type,disabled as is_disabled,city,school,hot")->find(); $info['userinfo'] = $userinfo; return show(SUCCESS_MESSAGE,SUCCESS_CODE,$info);