diff --git a/app/controller/Article.php b/app/controller/Article.php index 83a9a77..b0b8408 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -87,7 +87,10 @@ class Article ->order("id desc") ->limit(env("page_count")) ->select(); - $info['other_list'] = $lists; + foreach($lists as $vo){ + $vo['imgs'] = json_decode($vo['imgs'],true); + $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(); $info['userinfo'] = $userinfo;