From 9f5a91d0b051b84d04f23f5ab9ccdefb8d73351c Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:07:21 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controller/Article.php b/app/controller/Article.php index d86e241..83a9a77 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -88,6 +88,10 @@ class Article ->limit(env("page_count")) ->select(); $info['other_list'] = $lists; + $info['userinfo']=[]; + $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); }