From 07938ca763de44610d6c1988cf8951bffceaf30b Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:14:25 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;